Skip to content

Commit

Permalink
pushing new availabilities for all family members
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvillr committed Oct 25, 2023
1 parent 12f58d9 commit 393e187
Show file tree
Hide file tree
Showing 5 changed files with 747 additions and 468 deletions.
53 changes: 25 additions & 28 deletions vision/make_availabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,44 @@
'Timmy_Jr': [],
}
timmy_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],
'saturday': [0, 1, 2, 3, 4, 5, 6, 7],
'sunday': [0, 1, 2, 3, 4, 5, 6, 7],
'monday': [8, 9, 10, 11, 12, 13, 14, 15, 20, 21, 22, 23, 24, 25],
'tuesday': [8, 9, 10, 11, 12, 13, 14, 15, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33],
'wednesday': [8, 9, 10, 11, 12, 13, 14, 15, 18],
'thursday': [8, 9, 10, 11, 12, 13, 14, 15],
'friday': [8, 9, 10, 11, 12, 13, 14, 15, 20, 21, 22, 23, 24, 25],
'saturday': [12, 13, 14, 15],
}
timmj_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],
'saturday': [0, 1, 2, 3, 4, 5, 6, 7],
'sunday': [0, 1, 2, 3, 4, 5, 6, 7],
'monday': [24, 25, 26, 27, 28, 29],
'wednesday': [22, 23, 24, 25, 26],
'thursday': [24, 25, 26, 27, 28, 29, 30, 31, 32, 33],
'saturday': [21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33],
'sunday': [22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33],
}
jimmy_time_slots = {
'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],
'monday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 16, 17, 18, 19, 20, 21, 22],
'tuesday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 16, 17, 18, 19],
'wednesday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 20, 21, 24, 25, 26, 27, 28],
'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],
'friday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16, 17, 18, 19],
'saturday': [18, 19, 20, 21, 22, 23, 24, 25, 26, 27],
'sunday': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
}
kimmy_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],
'saturday': [0, 1, 2, 3, 4, 5, 6, 7],
'sunday': [0, 1, 2, 3, 4, 5, 6, 7],
'monday': [10, 11, 12, 13, 15, 16, 17, 18, 27, 30, 31, 32, 33],
'tuesday': [16, 24, 25, 26, 27],
'wednesday': [16, 17, 20, 21, 22, 23],
'thursday': [16, 17, 18, 19, 20, 21, 22, 23, 24],
'friday': [18, 19, 20, 21, 22, 23, 24, 25, 26, 27],
'saturday': [0, 1, 2, 3, 4, 5, 14, 15, 16],
'sunday': [16, 17, 18, 19],
}


def make_json(person):
result = []
for day in person:
for time in day:
for time in person.get(day):
result.append(
{'day': day, 'time_slot': time, 'data': '', 'colour': 'black'}
)
Expand Down
Loading

0 comments on commit 393e187

Please sign in to comment.