Fix error thrown when attempting to add workout due to datetime reference error
This commit is contained in:
2
db.py
2
db.py
@@ -98,7 +98,7 @@ class DataBase():
|
|||||||
topset_id], commit=True)
|
topset_id], commit=True)
|
||||||
|
|
||||||
def create_workout(self, person_id):
|
def create_workout(self, person_id):
|
||||||
now = datetime.datetime.now()
|
now = datetime.now()
|
||||||
date_string = now.strftime('%Y-%m-%d')
|
date_string = now.strftime('%Y-%m-%d')
|
||||||
print(
|
print(
|
||||||
f'Creating workout for PersonId {person_id} starting at {date_string}')
|
f'Creating workout for PersonId {person_id} starting at {date_string}')
|
||||||
|
|||||||
Reference in New Issue
Block a user