Skip to content
Snippets Groups Projects
Commit 61f2f93b authored by Martin Mareš's avatar Martin Mareš
Browse files

Školy: Má-li škola poznámku, vypisujeme ji

parent 38d796e9
Branches
No related tags found
No related merge requests found
...@@ -320,6 +320,8 @@ def create_action(ps: ProtoSchool, type: ActionType, msg: str) -> Action: ...@@ -320,6 +320,8 @@ def create_action(ps: ProtoSchool, type: ActionType, msg: str) -> Action:
print(f'\t# Log ({timeformat(log.changed_at)} {log.user.full_name() if log.user else "system"}): {log.details}') print(f'\t# Log ({timeformat(log.changed_at)} {log.user.full_name() if log.user else "system"}): {log.details}')
if ps.unsure_region: if ps.unsure_region:
print('\t# WARNING: Obec s nejistým regionem') print('\t# WARNING: Obec s nejistým regionem')
if ps.school and ps.school.place.note:
print(f'\t# NOTE: {ps.school.place.note}')
return Action(type=type, school_id=school_id, values={}) return Action(type=type, school_id=school_id, values={})
...@@ -407,6 +409,8 @@ def plan_actions() -> List[Action]: ...@@ -407,6 +409,8 @@ def plan_actions() -> List[Action]:
elif old and (not new or old.address < new.address): elif old and (not new or old.address < new.address):
assert old.school assert old.school
print(f'TODO: Starou školu #{old.school.place_id} (RED IZO {red_izo}) nedokáži spárovat s novou') print(f'TODO: Starou školu #{old.school.place_id} (RED IZO {red_izo}) nedokáži spárovat s novou')
if old.school.place.note:
print(f'\t# NOTE: {old.school.place.note}')
for field in fields: for field in fields:
print(f'\t{field}: {getattr(old, field)}') print(f'\t{field}: {getattr(old, field)}')
oi += 1 oi += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment