Skip to content

Commit

Permalink
Update private.html (CTFd#2531)
Browse files Browse the repository at this point in the history
fix: 500 error no score

Co-authored-by: Kevin Chung <[email protected]>
  • Loading branch information
numanturle and ColdHeat authored May 10, 2024
1 parent 20ffdb8 commit 9b14c27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CTFd/themes/core/templates/users/private.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ <h2 class="text-center">
{% endif %}
</h2>
<h2 class="text-center">
{{ account.get_score(admin=True) }} <small>points</small>
{% if account %}
{{ account.score }} <small>points</small>
{% endif %}
</h2>
</div>

Expand Down

0 comments on commit 9b14c27

Please sign in to comment.