Skip to content

Commit 01d876f

Browse files
hroncokencukou
authored andcommitted
Sort past runs by year in descending order
1 parent 0aee075 commit 01d876f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

naucse/templates/run_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1>Aktuální kurzy</h1>
3333
{% endfor %}
3434

3535
<h1>Proběhlé kurzy</h1>
36-
{% for year, run_year in run_years.items() %}
36+
{% for year, run_year in run_years.items() | sort(reverse=True) %}
3737
<h2>{{ year }}</h2>
3838
{% for run in run_year.runs.values() | sort(attribute='start_date', reverse=True)
3939
if run.end_date < today %}

0 commit comments

Comments
 (0)