From 3476198c27659a870034d8e7fefb93b720c0a5be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 24 Oct 2022 15:48:36 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20(tab.=20do=C5=A1.=20=C5=99e=C5=A1en=C3=AD?= =?UTF-8?q?):=20p=C5=99=C3=ADd=C3=A1n=C3=AD=20v=C4=8Detn=C4=9B=20+=20vyjma?= =?UTF-8?q?,=20p=C5=99id=C3=A1na=20mo=C5=BEnost=20odjak=C5=BEiva?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odevzdavatko/forms.py | 3 +++ odevzdavatko/templates/odevzdavatko/tabulka.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/odevzdavatko/forms.py b/odevzdavatko/forms.py index 9e72fe73..271c448a 100644 --- a/odevzdavatko/forms.py +++ b/odevzdavatko/forms.py @@ -155,6 +155,9 @@ class OdevzdavatkoTabulkaFiltrForm(forms.Form): result = [] + result.append(( + strftime(DATE_FORMAT, datetime.date.min.timetuple()), f"Odjakživa")) + for deadline in m.Deadline.objects.filter( deadline__lte=timezone.now(), cislo__rocnik=aktualni_rocnik diff --git a/odevzdavatko/templates/odevzdavatko/tabulka.html b/odevzdavatko/templates/odevzdavatko/tabulka.html index 4e4be2ec..419b4473 100644 --- a/odevzdavatko/templates/odevzdavatko/tabulka.html +++ b/odevzdavatko/templates/odevzdavatko/tabulka.html @@ -7,8 +7,8 @@
{{ filtr.resitele }} {{ filtr.problemy }} -Od: {{ filtr.reseni_od }} -Do: {{ filtr.reseni_do }} +Od data (vyjma): {{ filtr.reseni_od }} +Do data (včetně): {{ filtr.reseni_do }} 🔨? {{ filtr.neobodovane }}