From 71c894aa4d1125c5cc41847916cf389d538a8cf6 Mon Sep 17 00:00:00 2001 From: Matthew Sweet <98288154+mattsweet417@users.noreply.github.com> Date: Tue, 26 Sep 2023 16:42:43 -0400 Subject: [PATCH] added abbreviation for winslow --- convert.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/convert.py b/convert.py index 9ffb81c..728ea11 100644 --- a/convert.py +++ b/convert.py @@ -53,7 +53,8 @@ 'Cogswell Laboratory': 'Cogswell', 'West Hall': 'West', 'Biotechnology and Interdis Bld': 'CBIS', - 'Materials Research Center': 'MRC' + 'Materials Research Center': 'MRC', + 'Winslow Building': 'Winslow' } expanded = {v: k for k, v in abbrev.items()} @@ -73,7 +74,7 @@ if int(sem['name'][-2:]) <= month: #TODO: precise sem cutoffs curSem = sem['url'] break - +print(curSem) content = get(curSem).json() courses = get(content[1]['download_url']).json()