diff --git a/dojo_theme/templates/hacker.html b/dojo_theme/templates/hacker.html index 68cb09be1..86c522c0f 100644 --- a/dojo_theme/templates/hacker.html +++ b/dojo_theme/templates/hacker.html @@ -39,9 +39,9 @@

- {% for dojo in dojos if dojo.solves(user=user, ignore_visibility=True).count() > 0 %} + {% for dojo in dojos if dojo.solves(user=user, ignore_visibility=True, ignore_admins=False).count() > 0 %} {% set rank, max_rank = ranking(dojo, user) %} - {% set solves = dojo.solves(user=user, ignore_visibility=True).all() | map(attribute="challenge_id") | list %} + {% set solves = dojo.solves(user=user, ignore_visibility=True, ignore_admins=False).all() | map(attribute="challenge_id") | list %}

{{ dojo.name }}

@@ -54,11 +54,11 @@


-
+
{% for module in dojo.modules %} - {% set solves = dojo.solves(user=user, module=module, ignore_visibility=True).all() | map(attribute="challenge_id") | list %} + {% set solves = module.solves(user=user, ignore_visibility=True, ignore_admins=False).all() | map(attribute="challenge_id") | list %} {% set rank, max_rank = ranking(module, user) %} - {% call(header) accordion_item("{}-modules".format(dojo.reference_id), loop.index) %} + {% call(header) accordion_item("{}-modules".format(dojo.hex_dojo_id), loop.index) %} {% if header %}

{{ module.name }}