Skip to content

Commit

Permalink
Add 11320 semester (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew authored Dec 10, 2024
2 parents aefd20f + c53c3b9 commit caaea93
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions runners/update-courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const job = schedule.scheduleJob("0 0 * * *", async () => {
try {
console.log("syncing courses begin uwu");
const res = await fetch(
"http://localhost:8080/api/scrape-archived-courses?semester=11310",
"http://localhost:8080/api/scrape-archived-courses?semester=11320",
{
method: "GET",
headers: {
Expand All @@ -16,7 +16,7 @@ const job = schedule.scheduleJob("0 0 * * *", async () => {
},
);
const res2 = await fetch(
"http://localhost:8080/api/scrape-syllabus?semester=11310",
"http://localhost:8080/api/scrape-syllabus?semester=11320",
{
method: "GET",
headers: {
Expand All @@ -26,7 +26,7 @@ const job = schedule.scheduleJob("0 0 * * *", async () => {
},
);
const res3 = await fetch(
"http://localhost:8080/api/sync-algolia?semester=11310",
"http://localhost:8080/api/sync-algolia?semester=11320",
{
method: "GET",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/sync-courses/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const GET = async (request: NextRequest) => {
});
}

const semester = "11310";
const semester = "11320";

console.log("syncing courses uwu");
console.log("scraping archived courses");
Expand Down
7 changes: 7 additions & 0 deletions src/const/semester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export const semesterInfo = [
begins: new Date(2024, 9 - 1, 2),
ends: new Date(2024, 12 - 1, 22),
},
{
id: "11320",
year: 2025,
semester: 2,
begins: new Date(2025, 2 - 1, 17),
ends: new Date(2025, 6 - 1, 8),
},
];

export const currentSemester = semesterInfo.find((semester) => {
Expand Down

0 comments on commit caaea93

Please sign in to comment.