Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benpaddlejones committed Oct 27, 2024
1 parent ae46cec commit cd4844b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
Binary file modified __pycache__/userManagement.cpython-312.pyc
Binary file not shown.
Binary file modified databaseFiles/database.db
Binary file not shown.
3 changes: 3 additions & 0 deletions templates/partials/success_feedback.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<p>
Tempe High School Students WERE HERE!
</p>
<p>
dzsfdfzs
</p>
2 changes: 1 addition & 1 deletion userManagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ 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())
number += 1
with open("visitor_log.txt", "w") as file:
file.write(str(number))
if cur.fetchone() == None:
con.close()
return False
else:
con.close()
Expand Down
2 changes: 1 addition & 1 deletion visitor_log.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
220
224

0 comments on commit cd4844b

Please sign in to comment.