From ab54db571af197e17fe36769db5dcce271dc12bd Mon Sep 17 00:00:00 2001 From: Angad Singh Josan <97420031+internot169@users.noreply.github.com> Date: Fri, 31 May 2024 15:43:15 -0700 Subject: [PATCH] Revert "deploy today @ 7 pm (#655)" (#657) This reverts commit d4e5aa2e1bd44f816e4a8a6e9b9477bc7aa9f520. --- app.py | 6 +----- static/html/schedule.html | 8 ++++---- static/images/theboard.png | Bin 306181 -> 0 bytes static/js/index.js | 15 ++++++--------- templates/index.html | 6 +----- 5 files changed, 12 insertions(+), 23 deletions(-) delete mode 100644 static/images/theboard.png diff --git a/app.py b/app.py index b83d199..bb80a72 100644 --- a/app.py +++ b/app.py @@ -2,7 +2,6 @@ import datetime import json import os -import random import re import google.oauth2.id_token @@ -179,10 +178,6 @@ def main(): # Get the last 28 days of lunches lunches = get_lunches_since_date(datetime.date.today() - datetime.timedelta(28)) - days_randified = DAYS.copy() - num = random.uniform(0, 1) - if num < 0.75: - days_randified[0]["2024-05-31"] = "D-A_Fri" # Handler for how to serialize date objs into json response = make_response( render_template( @@ -227,6 +222,7 @@ def gen_opted_out_table(): def is_same_class(a, b): + print(a) return ( a["teacher_username"] == b["teacher_username"] and a["period"] == b["period"] diff --git a/static/html/schedule.html b/static/html/schedule.html index eddc664..dea13c6 100644 --- a/static/html/schedule.html +++ b/static/html/schedule.html @@ -247,8 +247,8 @@