|
@ -320,7 +320,9 @@ def check_uloha(): |
|
|
|
|
|
|
|
|
for o,n in res: |
|
|
for o,n in res: |
|
|
check_same(o,n, old_fields, new_fields) |
|
|
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(): |
|
|
def check_tema(): |
|
|
old_query = "SELECT * FROM seminar_problemy WHERE typ IN ('tema', 'serial') ORDER BY id" |
|
|
old_query = "SELECT * FROM seminar_problemy WHERE typ IN ('tema', 'serial') ORDER BY id" |
|
|