Skip to content

Commit

Permalink
Add special hour blocks for furniture install (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan authored Mar 23, 2024
1 parent 77ef254 commit 09c9e13
Showing 1 changed file with 30 additions and 35 deletions.
65 changes: 30 additions & 35 deletions backend/services/coworking/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,55 +77,50 @@ def office_hours(self, date: datetime):
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : [
# (time(hour=16, minute=00), time(hour=17, minute=30))
# ]
'SN141' : [(time(hour=10, minute=30), time(hour=18))], # KMP 426
'SN144' : [],
'SN146' : [],
'SN147' : [(time(hour=15), time(hour=18))], # Sridhar
}
elif day == TUESDAY:
return {
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : [
# (time(hour=10, minute=00), time(hour=11, minute=00))
# ]
return { # Temporary fix for blocking off furniture install days
'SN135' : [(time(hour=10), time(hour=19))],
'SN137' : [(time(hour=10), time(hour=19))],
'SN139' : [(time(hour=10), time(hour=19))],
'SN141' : [(time(hour=10), time(hour=19))],
'SN144' : [(time(hour=10), time(hour=19))],
'SN146' : [(time(hour=10), time(hour=19))],
'SN147' : [(time(hour=10), time(hour=19))],
}
elif day == WEDNESDAY:
return {
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : [
# (time(hour=10, minute=00), time(hour=11, minute=00))
# ]
return { # Temporary fix for blocking off furniture install days
'SN135' : [(time(hour=10, minute=0), time(hour=19, minute=0))],
'SN137' : [(time(hour=10), time(hour=19))], # [(time(hour=15), time(hour=16))] # Leong
'SN139' : [(time(hour=10), time(hour=19))],
'SN141' : [(time(hour=10), time(hour=19))],
'SN144' : [(time(hour=10), time(hour=19))],
'SN146' : [(time(hour=10), time(hour=19))],
'SN147' : [(time(hour=10), time(hour=19))], # [(time(hour=15), time(hour=18))], # Sridhar
}
elif day == THURSDAY:
return {
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : []
'SN141' : [],
'SN144' : [],
'SN146' : [],
'SN147' : [(time(hour=16), time(hour=18))], # Sridhar
}
elif day == FRIDAY:
return {
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : [
# (time(hour=10, minute=00), time(hour=11, minute=00))
# ]
'SN141' : [],
'SN144' : [],
'SN146' : [],
'SN147' : [],
}
elif day == SATURDAY:
return {
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : []
}
elif day == SUNDAY:
return {
'SN135' : [],
'SN137' : [],
'SN139' : [],
# 'SN141' : []
}
else:
return {}

0 comments on commit 09c9e13

Please sign in to comment.