-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move contest.csv calls to api #6203
Conversation
…to nighthawk/move-contest-calls-to-api
✅ code4rena.com deploy preview ready
|
@@ -23,7 +24,7 @@ const getLeaderboardResults = async ( | |||
handle?: string | |||
) => { | |||
// @TODO: also filter by contestId (if provided) | |||
const allContests = (await csv().fromFile("_data/contests/contests.csv")) | |||
const allContests = (await getApiContestData()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See here we are making the API call instead of using the graph for example, so I am not sure we need to feed the graph.
@joshuashort Would like to have your opinion on this commit . As the contest data will come from the API from now on, I suggest removing the check for contests in |
Yeah, agree in principle. If we still need to validate the contest csv, that’d have to move to its new home (a _data repo or directly in the API). But disabling validation here is gonna be needed. |
…-423n4/code423n4.com into nighthawk/move-contest-calls-to-api
…hawk/move-contest-calls-to-api
This is waiting until the contest data is moved into Moralis.