ui: fix contest_filter (#234)

This commit is contained in:
undefined committed 2021-10-15 12:56:09 +08:00
1 parent 8b9ff434e2
commit fc7e1e2e05
2 files changed
+2 -2

No files matched your search

@@ -61,7 +61,7 @@
<form method="get" name="filter-form">
{{ _('Show') }}:
<select class="inline compact select" name="rule">
<option value="0"{% if not rule %} selected{% endif %}>{{ _('All') }}</option>
<option value=""{% if not rule %} selected{% endif %}>{{ _('All') }}</option>
{%- for k, v in model.contest.RULES -%}
{% if k != 'homework' %}
<option value="{{ k }}"{% if rule == k %} selected{% endif %}>{{ _('All {0} Contests').format(v.TEXT) }}</option>