From 369b0520cea3dd4a89d68f634c65bb3c89926cfc Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Thu, 17 Nov 2022 20:54:31 +1100 Subject: [PATCH] Fix error thrown when attempting to add workout due to datetime reference error --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.py b/db.py index 9597015..11245d7 100644 --- a/db.py +++ b/db.py @@ -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}')