From 0cd7598c6d8a4ffec4c2e5626a10a800042f6e0d Mon Sep 17 00:00:00 2001
From: Jonas Leder <jonas@jonasled.de>
Date: Tue, 22 Mar 2022 13:31:04 +0100
Subject: [PATCH] remove not needed string transformation

---
 app/redirectShortenURL.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/redirectShortenURL.py b/app/redirectShortenURL.py
index dd37c83..be472d9 100644
--- a/app/redirectShortenURL.py
+++ b/app/redirectShortenURL.py
@@ -20,7 +20,7 @@ def redirect_shorten_url(request, short_url):
             row = row = cursor.fetchone()
             if not row is None:
                 calls = row[0] + 1
-                cursor.execute('UPDATE ANALYTICS SET CALLS = ? WHERE SHORT_URL=?', (str(calls), host + "/" + short_url.lower()))
+                cursor.execute('UPDATE ANALYTICS SET CALLS = ? WHERE SHORT_URL=?', [calls, host + "/" + short_url.lower()])
             else:
                 cursor.execute('INSERT INTO ANALYTICS (SHORT_URL) VALUES (?)', [host + "/" + short_url.lower()])
 
-- 
GitLab