Merge branch 'oprava_tabulky' into develop

This commit is contained in:
Jonas Havelka 2022-10-24 16:31:55 +02:00
commit 9daeeedda3

View file

@ -155,8 +155,10 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form):
result = [] result = []
result.append(( date_str = strftime(DATE_FORMAT, datetime.date.min.timetuple())
strftime(DATE_FORMAT, datetime.date.min.timetuple()), f"Odjakživa")) if date_str[0] == '1': # Někde očividně vrací strftime rok bez nul.
date_str = "000" + date_str
result.append((date_str, f"Odjakživa"))
for deadline in m.Deadline.objects.filter( for deadline in m.Deadline.objects.filter(
deadline__lte=timezone.now(), deadline__lte=timezone.now(),