Skip to content

Commit

Permalink
Reset policies for Phase 2 Launch of XL (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan authored Mar 30, 2024
1 parent b29e7f6 commit 0de1c7d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 45 deletions.
64 changes: 26 additions & 38 deletions backend/services/coworking/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,53 +72,41 @@ def non_reservable_rooms(self) -> list[str]:
def office_hours(self, date: datetime):
day = date.weekday()
if day == MONDAY:
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))],
# Future
# 'SN135' : [],
# 'SN137' : [],
# 'SN139' : [],
# 'SN141' : [(time(hour=10, minute=30), time(hour=18))], # KMP 426
# 'SN144' : [],
# 'SN146' : [],
# 'SN147' : [(time(hour=15), time(hour=18))], # Sridhar
return {
"SN135": [],
"SN137": [],
"SN139": [],
"SN141": [time(hour=9), time(hour=16)], # Stotts 301
"SN144": [],
"SN146": [],
"SN147": [(time(hour=15), time(hour=18))], # Sridhar
}
elif day == TUESDAY:
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))],
return {
"SN135": [],
"SN137": [],
"SN139": [],
"SN141": [time(hour=9), time(hour=16)], # Stotts 301
"SN144": [],
"SN146": [],
"SN147": [(time(hour=15), time(hour=18))], # Sridhar
}
elif day == WEDNESDAY:
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
return {
"SN135": [],
"SN137": [time(hour=3), time(hour=4)], # Johnathan Leong
"SN139": [],
"SN141": [time(hour=9), time(hour=16)], # Stotts 301
"SN144": [],
"SN146": [],
"SN147": [(time(hour=15), time(hour=18))], # Sridhar
}
elif day == THURSDAY:
return {
"SN135": [],
"SN137": [],
"SN139": [],
"SN141": [],
"SN141": [time(hour=9), time(hour=16)], # Stotts 301
"SN144": [],
"SN146": [],
"SN147": [(time(hour=16), time(hour=18))], # Sridhar
Expand All @@ -128,7 +116,7 @@ def office_hours(self, date: datetime):
"SN135": [],
"SN137": [],
"SN139": [],
"SN141": [],
"SN141": [time(hour=9), time(hour=16)], # Stotts 301
"SN144": [],
"SN146": [],
"SN147": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Output,
SimpleChanges
} from '@angular/core';
import { Seat, SeatAvailability } from 'src/app/coworking/coworking.models';
import { SeatAvailability } from 'src/app/coworking/coworking.models';

class SeatCategory {
public title: string;
Expand Down Expand Up @@ -100,9 +100,7 @@ export class CoworkingDropInCard implements OnChanges {
this.categories[SITTING_BENCH].push(seat);
}
} else {
// Temporary hack for furniture installation
// Closing off communal area for office hours
// this.categories[COLLAB_AREA].push(seat);
this.categories[COLLAB_AREA].push(seat);
}
}
}
Expand All @@ -118,9 +116,7 @@ export class CoworkingDropInCard implements OnChanges {
return [
new SeatCategory('Sitting Desk with Monitor'),
new SeatCategory('Standing Desk with Monitor'),
new SeatCategory(
'Communal Area (Closed while Hallway Renovations Complete)' // TODO: Revert after furniture install
)
new SeatCategory('Communal Area')
];
}
}

0 comments on commit 0de1c7d

Please sign in to comment.