Extend stats range to 2018
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2bd07e5f2d
commit
8423fd02b4
|
@ -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