Extend stats range to 2018

This commit is contained in:
Lukáš Kucharczyk 2023-11-02 15:27:19 +01:00
parent ff30962ce9
commit 2076fe20d1
2 changed files with 4 additions and 3 deletions

View File

@ -10,8 +10,9 @@
<form method="get" class="text-center">
<label class="text-5xl text-center inline-block mb-10" for="yearSelect">Stats for:</label>
<select name="year" id="yearSelect" onchange="this.form.submit();" class="mx-2">
<option value="2022" {% if year == 2022 %}selected{% endif %}>2022</option>
<option value="2023" {% if year == 2023 %}selected{% endif %}>2023</option>
{% for year_item in stats_dropdown_year_range %}
<option value="{{ year_item }}" {% if year == year_item %}selected{% endif %}>{{ year_item }}</option>
{% endfor %}
</select>
</form>
</div>

View File

@ -30,7 +30,7 @@ def model_counts(request):
def stats_dropdown_year_range(request):
return {"stats_dropdown_year_range": range(2022, 2024)}
return {"stats_dropdown_year_range": range(2018, 2024)}
def add_session(request):