Fix hat counter logic breaking Simps listing.

master
Snakes 2022-10-08 23:55:40 -04:00
parent 5c92432ab7
commit cf1844d6a4
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@
{% endblock %}
{% import 'userpage_admintools.html' as userpage_admintools with context %}
{% set hats_total = u.hats_owned_proportion_display[1] %}
{% set hats_owned_percent = u.hats_owned_proportion_display[0] %}
{% set hats_total = u.hats_owned_proportion_display[1] if u else 0 %}
{% set hats_owned_percent = u.hats_owned_proportion_display[0] if u else '' %}
{% block desktopUserBanner %}