Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
Shorten locations server-side instead of requiring clients to update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidschlachter committed May 9, 2019
1 parent 86cb9bf commit 2e83b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions course-download/updateDatabase.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ def main():
if times[0] == times[1] : continue # an activity with a zero duration
activityTypes.append(activityType)

locationRows[j] = re.sub("^[^(]+\\(", "(", locationRows[j])
locationRows[j] = re.sub("[()]", "", locationRows[j])

if args.verbose: print(" ", sectionNumber, activityType, str(activityNumber), fullDay, times[0], times[1])
activities.append(
convertActivityCode(activityType) + "," +
Expand Down
2 changes: 0 additions & 2 deletions schedule-generator/ca/uottawa/ui/ClientGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,6 @@ private void drawSchedule() {
String actType = a.getType();
String strAct = actType + " " + a.getNumber();
String strLoc = a.getPlace();

strLoc = strLoc.replaceAll("^[^(]+\\(", "(").replaceAll("[()]", "");

//We should find out what color this activity will be drawn in.
switch (actType) {
Expand Down

0 comments on commit 2e83b59

Please sign in to comment.