From 61f2f93b477bc246d6c2c60edbb623f823a4823c Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Sun, 10 Nov 2024 14:11:47 +0100 Subject: [PATCH] =?UTF-8?q?=C5=A0koly:=20M=C3=A1-li=20=C5=A1kola=20pozn?= =?UTF-8?q?=C3=A1mku,=20vypisujeme=20ji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/init-schools | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/init-schools b/bin/init-schools index d176e5a1..792c9c2b 100755 --- a/bin/init-schools +++ b/bin/init-schools @@ -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}') if ps.unsure_region: 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={}) @@ -407,6 +409,8 @@ def plan_actions() -> List[Action]: elif old and (not new or old.address < new.address): assert old.school 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: print(f'\t{field}: {getattr(old, field)}') oi += 1 -- GitLab