Skip to content

Commit

Permalink
Merge pull request #182 from ractf/hotfix/stats
Browse files Browse the repository at this point in the history
Update views.py
  • Loading branch information
david-cooke authored Aug 13, 2021
2 parents 847d691 + 60d5404 commit d7ca2d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def full(request):
challenge_data[challenge] = {}
challenge_data[challenge]["correct"] = correct_solve_counts.get(challenge, 0)
for challenge in incorrect_solve_counts:
if challenge not in challenge_data:
challenge_data[challenge] = {}
challenge_data[challenge]["incorrect"] = incorrect_solve_counts.get(challenge, 0)

point_distribution = {}
Expand Down

0 comments on commit d7ca2d1

Please sign in to comment.