Skip to content

Commit ee71407

Browse files
committed
Updated requirements.txt & removed DateTime params.
1 parent 855b3e9 commit ee71407

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/routes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def register_user():
3030
user_db.open_db()
3131

3232
if (user_db.get_row("Email", email) == None and user_db.get_row("Username", username) == None):
33-
last_updated = DateTime(1111, 1, 1, 1, 1, 1)
33+
last_updated = DateTime()
3434
last_updated.set_UTC()
3535
user_db.insert_row(email, username, sha512_crypt.hash(password + last_updated.tostring()), account_type, last_updated.tostring())
3636
user_db.close_db()
@@ -92,7 +92,7 @@ def change_password():
9292
username = request.form['username']
9393
password = request.form['password']
9494
new_password = request.form['new_password']
95-
last_updated = DateTime(1111, 1, 1, 1, 1, 1)
95+
last_updated = DateTime()
9696
last_updated.set_UTC()
9797
user_db.open_db()
9898
row = user_db.get_row("Username", username)

db-model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
admin_email = str("master@test.com")
77
admin_username = str("master123")
8-
last_updated = DateTime(1111, 1, 1, 1, 1, 1)
8+
last_updated = DateTime()
99
last_updated.set_UTC()
1010
admin_password = sha512_crypt.hash("master123" + last_updated.tostring())
1111
account_type = "Admin"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ itsdangerous==1.1.0
66
Jinja2==2.11.3
77
MarkupSafe==1.1.1
88
passlib==1.7.2
9-
pydate==1.1.6
9+
pydate==1.1.7
1010
python-dotenv==0.14.0
1111
Werkzeug==1.0.1
1212
WTForms==2.3.3

0 commit comments

Comments
 (0)