Browse Source

dedline na titulní straně prioritně soustřeďkový

export_seznamu_prednasek
Kateřina Č 4 years ago
parent
commit
0d3a10860b
  1. 2
      seminar/views/views_all.py

2
seminar/views/views_all.py

@ -568,6 +568,8 @@ class TitulniStranaView(generic.ListView):
try: try:
nejblizsi_deadline = sorted(filter(lambda dl: dl[0] is not None and dl[0] >= date.today(), [deadline_soustredeni, preddeadline, deadline]))[0] nejblizsi_deadline = sorted(filter(lambda dl: dl[0] is not None and dl[0] >= date.today(), [deadline_soustredeni, preddeadline, deadline]))[0]
if nejblizsi_deadline[0] == deadline_soustredeni[0]:
nejblizsi_deadline = deadline_soustredeni
except IndexError: except IndexError:
nejblizsi_deadline = (None, None) # neni zadna aktualni deadline nejblizsi_deadline = (None, None) # neni zadna aktualni deadline

Loading…
Cancel
Save