Skip to content

Commit 6204b8d

Browse files
committed
Add 2025-2026 data
1 parent e99b95e commit 6204b8d

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This loads data from Curricle for academic terms before Spring 2022 (AY 2022) an
4040
go run . download -year 2019 # -> data/courses-2019.json
4141
go run . download -year 2020 # -> data/courses-2020.json
4242
# ... and so on
43-
go run . download -year 2025 # -> data/courses-2025.json
43+
go run . download -year 2026 # -> data/courses-2026.json
4444
```
4545

4646
Unfortunately, My.Harvard does not allow you to view courses from previous academic years, so years between 2023 and the current one will probably not return any data. For those, you can download the appropriate preloaded datasets from our [public S3 bucket](https://s3.amazonaws.com/classes.wtf).

datasource/myharvard.go

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ func (s *SearchMh) request(page uint) (props map[string]any, results map[string]
179179
// Example: 2024 selects Fall 2023 and Spring 2024.
180180
func mhGetYearFilter(year int) (yearFilter string, err error) {
181181
switch year {
182+
case 2026:
183+
yearFilter = `(STRM:"2258" | STRM:"2262")`
182184
case 2025:
183185
yearFilter = `(STRM:"2248" | STRM:"2252")`
184186
case 2024:

frontend/src/App.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
6262
// Add relevant year/gen-ed tags to query, if boxes checked.
6363
finalQuery =
64-
(currentYear ? "@academicYear:[2025 2025] " : "") +
64+
(currentYear ? "@academicYear:[2026 2026] " : "") +
6565
normalizeText(query) +
6666
(genEdQuery ? genEdSearchQuery : "");
6767
@@ -171,7 +171,7 @@
171171
{#if !landing}
172172
<label class="flex items-center text-sm mb-2">
173173
<input class="mr-2" type="checkbox" bind:checked={currentYear} />
174-
Only show AY 2024–2025 courses
174+
Only show AY 2025–2026 courses
175175
</label>
176176
{/if}
177177

package-lock.json

+5-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)