From 86bc839f2ae851410dc997561780a0a9a4ce2d64 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Wed, 2 Jun 2021 02:41:21 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Alohy=20hotovy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_compare.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db_compare.py b/db_compare.py index 6c13883b..a2775e9c 100644 --- a/db_compare.py +++ b/db_compare.py @@ -320,7 +320,9 @@ def check_uloha(): for o,n in res: check_same(o,n, old_fields, new_fields) - # TODO: cislo_deadline + # Datum deadline vypadá prázdně, tak to budeme předpokládat. + if n['datum_deadline'] is not None: + raise ValueError("Úloha má deadline.") def check_tema(): old_query = "SELECT * FROM seminar_problemy WHERE typ IN ('tema', 'serial') ORDER BY id"