From 014297eea7c679a0715490e4a8321e1e4aac5f65 Mon Sep 17 00:00:00 2001 From: Pushpanjali Pawar Date: Wed, 25 Mar 2020 14:35:46 +0100 Subject: [PATCH] API filter added to fetch algorithms with no submission --- src/components/Forms/Algorithm/AlgorithmSubmission.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Forms/Algorithm/AlgorithmSubmission.tsx b/src/components/Forms/Algorithm/AlgorithmSubmission.tsx index 745f52f..c0ec85f 100644 --- a/src/components/Forms/Algorithm/AlgorithmSubmission.tsx +++ b/src/components/Forms/Algorithm/AlgorithmSubmission.tsx @@ -36,7 +36,10 @@ class AlgorithmSubmission extends React.Component { 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 }); } }