From b9354112ed92cc49db1cb8c8094bed4b0b1fe1ec Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Sun, 10 Nov 2024 15:11:27 +0100 Subject: [PATCH] =?UTF-8?q?=C5=A0koly:=20Bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/init-schools | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/init-schools b/bin/init-schools index bafcc2a3..01d4d7a1 100755 --- a/bin/init-schools +++ b/bin/init-schools @@ -424,7 +424,7 @@ def plan_actions() -> List[Action]: for old, new in merged_list: if old and new: print(f' Spárovaná (#{old.school.place_id}):') - s = new + s = old elif old: print(f' Jen v OSMO (#{old.school.place_id}):') s = old @@ -435,6 +435,8 @@ def plan_actions() -> List[Action]: print(f'\t# URL: {school_url(old.school.place_id)}') if old.school.place.note: print(f'\t# NOTE: {old.school.place.note}') + if old.school.place.hidden: + print('\t# HIDDEN') for field in fields: print(f'\t{field}: {getattr(s, field)}') -- GitLab