Skip to content

Commit

Permalink
fixed directory issue and adjusted some availabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvillr committed Oct 25, 2023
1 parent 8fac678 commit a30d591
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion db-handler/app/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions vision/make_availabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
}
Expand Down

0 comments on commit a30d591

Please sign in to comment.