Skip to content

Commit

Permalink
API filter added to fetch algorithms with no submission
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpanjalip committed Mar 25, 2020
1 parent 2aa5c62 commit 014297e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Forms/Algorithm/AlgorithmSubmission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ class AlgorithmSubmission extends React.Component<IProps & IUserProps, IState> {
async refresh() {
const { user } = this.props;
if (user != null) {
const usersAlgorithms = await comicApi.algorithms({ has_admin: user.id, benchmark: this.props.benchmark.id });
const usersAlgorithms = await comicApi.algorithms({
creator: user.id,
submissions_benchmark_or_empty: this.props.benchmark.id,
});
this.setState({ usersAlgorithms });
}
}
Expand Down

0 comments on commit 014297e

Please sign in to comment.