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"