Extend stats range to 2018
This commit is contained in:
parent
ff30962ce9
commit
2076fe20d1
|
@ -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>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue