From 5e79b0be0763ca8511e0465e7f4e221a575baac5 Mon Sep 17 00:00:00 2001 From: Nils G <nils.gondermann@ruhr-uni-bochum.de> Date: Mon, 11 May 2020 13:43:59 +0200 Subject: [PATCH] Closes #16: Fix timedelta not found in schedule --- models/z_schedule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/models/z_schedule.py b/models/z_schedule.py index ca3f7be..5dbac6a 100644 --- a/models/z_schedule.py +++ b/models/z_schedule.py @@ -1,4 +1,5 @@ from room_util import ROOM_CLOSE +from datetime import timedelta if db(db.Meta).count() > 0: seconds_passed = (request.now - db(db.Meta).select().first().schedule).total_seconds() -- GitLab