-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add location support, refactor backend and timetable API (#11)
* Move initial caching to timetable module * Add location support & rework api * Add location support to frontend * Update server responses and docstrings, and add semester number back to item code * Cache category under identity only * Use item identities for generated api URLs and timetable viewer * Update versions & requirements
- Loading branch information
Showing
18 changed files
with
401 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.12.5-slim | ||
FROM python:3.12.6-slim | ||
|
||
WORKDIR /app | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.2.1" | ||
__version__ = "2.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
"The module(s) to generate a timetable for.", | ||
str, | ||
required=False, | ||
example="CA103,CA116,MS134", | ||
example="CSC1061,CSC1003,MTH1025", | ||
), | ||
"format": ParameterInfo( | ||
"The response format.\n\nAllowed values: 'ical' or 'json'.\nDefault: 'ical'.", | ||
|
@@ -72,7 +72,7 @@ | |
PRODID:-//[email protected]//TimetableSync//EN | ||
METHOD:PUBLISH | ||
BEGIN:VEVENT | ||
SUMMARY:CA116 Computing Programming I (Lecture) | ||
SUMMARY:CSC1003 Computer Programming I (Lecture) | ||
DTSTART:20230925T090000Z | ||
DTEND:20230925T110000Z | ||
DTSTAMP:20231030T154328Z | ||
|
@@ -111,18 +111,18 @@ | |
), | ||
], | ||
description="Lecture", | ||
name="CA116[1]OC/L1/01", | ||
name="CSC1003[1]OC/L1/01", | ||
event_type="On Campus", | ||
last_modified=datetime.datetime.fromisoformat( | ||
"2023-06-29T09:41:17.367634+00:00" | ||
), | ||
module_name="CA116[1] Computing Programming I", | ||
module_name="CSC1003[1] Computer Programming I", | ||
staff_member="Blott S", | ||
weeks=[3, 4, 5, 6, 7, 8, 9, 10, 11, 12], | ||
group_name=None, | ||
parsed_name_data=[ | ||
models.ParsedNameData( | ||
module_codes=["CA116"], | ||
module_codes=["CSC1003"], | ||
semester=models.Semester.SEMESTER_1, | ||
delivery_type=models.DeliveryType.ON_CAMPUS, | ||
activity_type=models.ActivityType.LECTURE, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
aiohttp==3.10.5 | ||
aiohttp==3.10.6 | ||
blacksheep==2.0.7 | ||
uvicorn==0.30.6 | ||
uvicorn[standard]==0.30.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:22.6.0-slim | ||
FROM node:22.9.0-slim | ||
|
||
WORKDIR /app | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "frontend", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.