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
Branches
Tags
No related merge requests found
Pipeline #235 passed
......@@ -14,6 +14,7 @@ def deleteLink(request, s):
cursor = conn.cursor()
try:
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
except:
abort(500)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment