Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/filters/question.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ export const questionFilters = [
label: "Extreme"
}
]
},
{
key: "max_score",
label: "Max Score"
}
];

export const questionSorts = [
{
key: "max_score",
label: "Sort by points",
direction: 0
direction: -1
},
{
key: "created_at",
Expand Down
16 changes: 15 additions & 1 deletion src/filters/submission.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ export const submissionFilters = [
label: "Not Graded"
}
]
},
{
key: "automatically_graded",
label: "Grading Type",
options: [
{
key: "true",
label: "Auto Graded"
},
{
key: "false",
label: "Manually Graded"
}
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Event portal does not need this filter @icy-r

}
];

Expand All @@ -24,6 +38,6 @@ export const submissionSorts = [
{
key: "score",
label: "Sort by score",
direction: 0
direction: -1
}
];
2 changes: 1 addition & 1 deletion src/hooks/auth.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useAuth = () => {
navigate("/");
}
setCompleted(true);
}, [location]);
}, [location, navigate]);

return completed;
};
Expand Down