We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5284c commit 885de82Copy full SHA for 885de82
src/services/ChallengeService.js
@@ -1353,12 +1353,6 @@ getChallenge.schema = {
1353
*/
1354
async function getChallengeStatistics(currentUser, id) {
1355
const challenge = await getChallenge(currentUser, id);
1356
- // for now, only Data Science challenges are supported
1357
- if (challenge.type !== "Challenge" && challenge.track !== "Data Science") {
1358
- throw new errors.BadRequestError(
1359
- `Challenge of type ${challenge.type} and track ${challenge.track} does not support statistics`
1360
- );
1361
- }
1362
// get submissions
1363
const submissions = await helper.getChallengeSubmissions(challenge.id);
1364
// for each submission, load member profile
0 commit comments