-
Notifications
You must be signed in to change notification settings - Fork 1
Organizer Portal: Scoring Breakdown
projectsJson
: In this component, we store a dictionary of projects. Each project name is mapped to another dictionary that has two keys: scored
and unscored
. scored
is mapped to a list of lists, where each list contains the project name, the name of the judge who scored the project, and the score given to the project by that judge. Similarly, unscored
is mapped to a list of lists, where each list contains the project name and the name of the judge who is responsible for scoring the project. This component is set in componentDidMount
.
keys
: In this component, we store a list of project names. This state variable exists to ensure that nothing is rendered if no projects are in the projectsJson
component.
getJudge(judgeid)
: In this function, we retrieve the judge information stored in the database corresponding to the given judgeid
parameter.
getCategories()
: In this function, we retrieve the distinct categories from the database.
getScores(projectid)
: In this function, we retrieve the scores from the database corresponding to the given projectid
.
getName(projectid)
: In this function, we retrieve the name of the projects corresponding to the given projectid
.
getAPIs()
: In this function, we retrieve all the distinct APIs stored in the database.
routeToPrev()
: In this function, the organizer is directed to the previous page (Hacker Spreadsheet) when the previous button is clicked.