From 27e5fe02ac2477577e7e5d9b243ee3781771b20f Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 12 Jun 2026 08:28:56 +0000 Subject: [PATCH] =?UTF-8?q?Hesl=C3=A1=C5=99=20pristupnost:=20p=C5=99esko?= =?UTF-8?q?=C4=8Den=C3=AD=20z=C3=A1znam=C5=AF=20bez=20platn=C3=A9ho=20k?= =?UTF-8?q?=C3=B3du?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pokud žádný titulek záznamu neprojde filtrem na jednopísmenný kód, next() vrátil None a do heslar.csv se zapsal prázdný/None kód, který se mohl dostat do API filtru jako hodnota 'None:or'. Takové záznamy se nyní přeskakují. --- amcr_viewer/amcr_codelists.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amcr_viewer/amcr_codelists.py b/amcr_viewer/amcr_codelists.py index 93c0b34..4eb6965 100644 --- a/amcr_viewer/amcr_codelists.py +++ b/amcr_viewer/amcr_codelists.py @@ -158,6 +158,11 @@ def fetch_set(internal_name, api_set, task=None): ), None ) + # Skip records without a valid one-letter code – + # a None code would end up in the CSV and later + # in the API filter as the string "None" + if not kod: + continue dataset.append({ 'Název': nazev,