Skip to content

Commit

Permalink
Assign lunch A to RSTA auto garage
Browse files Browse the repository at this point in the history
In accordance with the new clarification to the lunch assignments.
  • Loading branch information
psvenk committed May 9, 2021
1 parent d1476f3 commit 6657d14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/js/clock.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ function update_lunch() {

// Takes an object with "room" and "id"
function get_lunch(p3room, p3id) {
// RSTA auto garage is lunch A
if (p3room === "GAR") {
return "a";
}

// War Memorial and remote teachers are lunch B
if (isNaN(parseInt(p3room))) {
return "b";
Expand Down

0 comments on commit 6657d14

Please sign in to comment.