Fix error thrown when attempting to add workout due to datetime reference error

This commit is contained in:
Peter Stockings
2022-11-17 20:54:31 +11:00
parent b4ec0ed81f
commit 369b0520ce

2
db.py
View File

@@ -98,7 +98,7 @@ class DataBase():
topset_id], commit=True)
def create_workout(self, person_id):
now = datetime.datetime.now()
now = datetime.now()
date_string = now.strftime('%Y-%m-%d')
print(
f'Creating workout for PersonId {person_id} starting at {date_string}')