Skip to content

Commit

Permalink
FIX submissions where empty
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Sep 20, 2023
1 parent 2c56b42 commit f0c2b97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/anubis/lms/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ def get_submissions(

ss = [s.partial_data for s in submissions]
for s in ss:
s['tests'] = submission_test_results[s['id']]
s['build'] = submission_builds[s['id']]
sid = s['id']
s['tests'] = submission_test_results.get(sid, [])
s['build'] = submission_builds.get(sid, None)

return ss, all_total

Expand Down

0 comments on commit f0c2b97

Please sign in to comment.