Skip to content

Commit

Permalink
Fix stats (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cooke authored Aug 13, 2021
1 parent a8cfb7f commit 847d691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def full(request):
incorrect_solve_counts = get_incorrect_solve_counts()
for challenge in correct_solve_counts:
challenge_data[challenge] = {}
challenge_data[challenge]["correct"] = correct_solve_counts[challenge]
challenge_data[challenge]["correct"] = correct_solve_counts.get(challenge, 0)
for challenge in incorrect_solve_counts:
challenge_data[challenge]["incorrect"] = incorrect_solve_counts[challenge]
challenge_data[challenge]["incorrect"] = incorrect_solve_counts.get(challenge, 0)

point_distribution = {}
for team in Team.objects.all():
Expand Down

0 comments on commit 847d691

Please sign in to comment.