Fix: rozbitá testdata

This commit is contained in:
Jonas Havelka 2022-11-07 20:42:12 +01:00
parent 3d1b2794e9
commit 100e16030a

View file

@ -445,7 +445,6 @@ def gen_cisla(rnd, rocniky):
poradi = str(ci), poradi = str(ci),
datum_vydani=vydano, datum_vydani=vydano,
verejne_db=True, verejne_db=True,
verejna_vysledkovka=True
) )
node2 = CisloNode.objects.get(cislo = cislo) node2 = CisloNode.objects.get(cislo = cislo)
node2.succ = node node2.succ = node
@ -454,7 +453,8 @@ def gen_cisla(rnd, rocniky):
deadline = Deadline.objects.create( deadline = Deadline.objects.create(
cislo=cislo, cislo=cislo,
deadline=deadline, deadline=deadline,
typ=Deadline.TYP_CISLA typ=Deadline.TYP_CISLA,
verejna_vysledkovka=True,
) )
deadline.save() deadline.save()
node = node2 node = node2