Skip to content

Commit

Permalink
removed 404 for submissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerwoud committed May 9, 2024
1 parent 69f21ac commit 65313a9
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ def get_last_submissions_per_user(project_id):
(Submission.submission_time == latest_submissions.c.max_time)
).all()

if not submissions:
return {"message": "No submissions found", "url": BASE_URL}, 404

return {"message": "Resource fetched succesfully", "data": submissions}, 200

class SubmissionDownload(Resource):
Expand Down

0 comments on commit 65313a9

Please sign in to comment.