From cd4844b6d463b71273fabac93879bc37450ed663 Mon Sep 17 00:00:00 2001 From: Ben Jones Date: Sun, 27 Oct 2024 17:15:04 +1100 Subject: [PATCH] fix --- __pycache__/userManagement.cpython-312.pyc | Bin 3159 -> 3160 bytes databaseFiles/database.db | Bin 16384 -> 16384 bytes templates/partials/success_feedback.html | 3 +++ userManagement.py | 2 +- visitor_log.txt | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/__pycache__/userManagement.cpython-312.pyc b/__pycache__/userManagement.cpython-312.pyc index 438bd8ace4eacbf6ac13ac859c93b4e6352bd3a1..b392b6635b28605574cc369b2a10f3f94969738c 100644 GIT binary patch delta 172 zcmcaEaYKUlG%qg~0}y!Ml1;y`k#{BYDl9bLs;Sgf-U}Clz~s{0{bnLkzkulFWx0H#@PrGmC4Kq~;dnB$lKW>lY*zm1HL76zdn4CQqKv^@z=Uhwx<% J+sWQbV!Zs<7#R82Fz~P8|Gb&U;5k1pw>UF{Y)VyeT1r|~F#xHL8FK&t delta 94 zcmZo@U~Fh$oFL8UK2gS*(S2jWT7Jfy&3ppO`GpEI5|fe*jf@Qp^?}I9z`$_xad}+< x2{BGaW^u;S;?$yIQC|LQ42=A182H!lKibS=@SLBwM8i Tempe High School Students WERE HERE!

+

+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