From cd4844b6d463b71273fabac93879bc37450ed663 Mon Sep 17 00:00:00 2001
From: Ben Jones
+dzsfdfzs +
diff --git a/userManagement.py b/userManagement.py index ee64a9d..e128fc2 100644 --- a/userManagement.py +++ b/userManagement.py @@ -24,7 +24,6 @@ def retrieveUsers(username, password): return False else: cur.execute(f"SELECT * FROM users WHERE password = '{password}'") - con.close() # Plain text log of visitor count as requested by Unsecure PWA management with open("visitor_log.txt", "r") as file: number = int(file.read().strip()) @@ -32,6 +31,7 @@ def retrieveUsers(username, password): with open("visitor_log.txt", "w") as file: file.write(str(number)) if cur.fetchone() == None: + con.close() return False else: con.close() diff --git a/visitor_log.txt b/visitor_log.txt index 3960544..fba8ce0 100644 --- a/visitor_log.txt +++ b/visitor_log.txt @@ -1 +1 @@ -220 \ No newline at end of file +224 \ No newline at end of file