Skip to content

Commit

Permalink
Override old prereq field on new push
Browse files Browse the repository at this point in the history
  • Loading branch information
ky28059 committed Nov 9, 2024
1 parent 7d71fe7 commit 1a11225
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29726,8 +29726,8 @@ async function getChallengeMetadata(category, name) {
max: data.maxPoints ?? 500
},
tiebreakEligible: data.tiebreakEligible ?? true,
prereqs: data.prereqs,
difficulty: data.difficulty
prereqs: data.prereqs ?? [],
difficulty: data.difficulty // TODO: override with default?
};
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type UploadData = {
max: number
},
tiebreakEligible: boolean,
prereqs?: string[],
prereqs: string[],
difficulty?: string,
}

Expand Down
4 changes: 2 additions & 2 deletions src/challs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export async function getChallengeMetadata(category: string, name: string) {
max: data.maxPoints ?? 500
},
tiebreakEligible: data.tiebreakEligible ?? true,
prereqs: data.prereqs,
difficulty: data.difficulty
prereqs: data.prereqs ?? [],
difficulty: data.difficulty // TODO: override with default?
}
return ret;
}

0 comments on commit 1a11225

Please sign in to comment.