From 66447063a929846a42347ba2fcad01ff7cfb1dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Thu, 13 Oct 2022 15:56:07 +0200 Subject: [PATCH] =?UTF-8?q?A=C5=A5=20to=20nepad=C3=A1,=20pokud=20nebyl=20p?= =?UTF-8?q?=C5=99i=C5=99azen=20deadline.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/migrations/0104_hodnoceni_deadline_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/migrations/0104_hodnoceni_deadline_body.py b/seminar/migrations/0104_hodnoceni_deadline_body.py index 17eab313..1c355ea8 100644 --- a/seminar/migrations/0104_hodnoceni_deadline_body.py +++ b/seminar/migrations/0104_hodnoceni_deadline_body.py @@ -62,7 +62,7 @@ def prirad_deadliny(apps, schema_editor): # Zběžná kontrola. Předpokládá, že M&M má méně než 10 čísel v ročníku # a že první znak pořadí je int určující dané pořadí (schroustání 7-8). - if h.cislo_body and ( + if h.cislo_body and h.deadline_body and ( int(h.deadline_body.cislo.poradi[0]) + 2 < int(h.cislo_body.poradi[0]) or int(h.deadline_body.cislo.poradi[0]) > int(h.cislo_body.poradi[0]) ):