Skip to content
Snippets Groups Projects
Commit fdb156dc authored by Jonas Leder's avatar Jonas Leder
Browse files

also delete statistic on link delete

parent 219df664
No related branches found
Tags 1.18.0
No related merge requests found
Pipeline #235 passed
...@@ -14,6 +14,7 @@ def deleteLink(request, s): ...@@ -14,6 +14,7 @@ def deleteLink(request, s):
cursor = conn.cursor() cursor = conn.cursor()
try: try:
cursor.execute('DELETE FROM WEB_URL WHERE SHORT_URL=? AND USERNAME=?', [linkToDelete, userID]) #Delete the entrie cursor.execute('DELETE FROM WEB_URL WHERE SHORT_URL=? AND USERNAME=?', [linkToDelete, userID]) #Delete the entrie
cursor.execute('DELETE FROM ANALYTICS WHERE SHORT_URL=?', [linkToDelete]) #Delete the entrie
return "OK" #response is only for ajax request return "OK" #response is only for ajax request
except: except:
abort(500) abort(500)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment