From a30d591514cd183960149fc68d8a49d12ca83732 Mon Sep 17 00:00:00 2001 From: alexvillr <73649305+alexvillr@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:27:33 +1000 Subject: [PATCH] fixed directory issue and adjusted some availabilities --- db-handler/app/utils.py | 3 ++- vision/make_availabilities.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/db-handler/app/utils.py b/db-handler/app/utils.py index f25a117..45eec9a 100644 --- a/db-handler/app/utils.py +++ b/db-handler/app/utils.py @@ -13,10 +13,11 @@ def current_to_timeslot() -> str: """ now = datetime.now() time_change = 0 - with open("../../time_change.txt", "r") as time: + with open("../time_change.txt", "r") as time: try: time_change = int(time.read()) except Exception as _: + print("error") time_change = 0 now += timedelta(seconds=time_change) diff --git a/vision/make_availabilities.py b/vision/make_availabilities.py index 65b6eac..73282bf 100644 --- a/vision/make_availabilities.py +++ b/vision/make_availabilities.py @@ -27,11 +27,11 @@ 'sunday': [0, 1, 2, 3, 4, 5, 6, 7], } jimmy_time_slots = { - 'monday': [0, 1, 2, 3, 4, 5, 6, 7], - 'tuesday': [0, 1, 2, 3, 4, 5, 6, 7], - 'wednesday': [0, 1, 2, 3, 4, 5, 6, 7], - 'thursday': [0, 1, 2, 3, 4, 5, 6, 7], - 'friday': [0, 1, 2, 3, 4, 5, 6, 7], + 'monday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], + 'tuesday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], + 'wednesday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], + 'thursday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], + 'friday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 'saturday': [0, 1, 2, 3, 4, 5, 6, 7], 'sunday': [0, 1, 2, 3, 4, 5, 6, 7], }