Zalámání moc dlouhého řádku
This commit is contained in:
parent
f5c260d79c
commit
176e601ec2
1 changed files with 4 additions and 1 deletions
|
@ -68,7 +68,10 @@ def prirad_deadliny(apps, schema_editor):
|
|||
h.deadline_body = d
|
||||
h.save()
|
||||
|
||||
if h.cislo_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])):
|
||||
if h.cislo_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])
|
||||
):
|
||||
log.error(f"Hodnocení {h.id} se špatně změnilo číslo z {h.cislo_body} na {h.deadline_body.cislo}")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue