From abb06b9858354ea8975d0d3baaecd958dc3e4bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sp=C3=A1=C4=8Dil?= Date: Mon, 29 Jun 2026 13:49:12 +0200 Subject: [PATCH] =?UTF-8?q?feature:=20globals=20pro=20PAS=20zalo=C5=BEeny?= =?UTF-8?q?=20nov=C3=A9=20hesl=C3=A1=C5=99ov=C3=A9=20globals,=20pak=20p?= =?UTF-8?q?=C5=99id=C3=A1ny=20do=20funkce=20refresh=5Fglobals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amcr_viewer/amcr_codelists.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/amcr_viewer/amcr_codelists.py b/amcr_viewer/amcr_codelists.py index 88c51ae..962b928 100644 --- a/amcr_viewer/amcr_codelists.py +++ b/amcr_viewer/amcr_codelists.py @@ -297,6 +297,16 @@ def refresh_globals(): LOKALITA_ZACHOVALOST.update(data.get('lokalita_zachovalost', {})) PRISTUPNOST.clear() PRISTUPNOST.update(data.get('pristupnost', {})) + NALEZ_KATEGORIE.clear() + NALEZ_KATEGORIE.update(data.get('nalez_kategorie', {})) + DRUH_NALEZU.clear() + DRUH_NALEZU.update(data.get('druh_nalezu', {})) + SPECIFIKACE.clear() + SPECIFIKACE.update(data.get('specifikace', {})) + NALEZOVE_OKOLNOSTI.clear() + NALEZOVE_OKOLNOSTI.update(data.get('nalezove_okolnosti', {})) + NALEZCE.clear() + NALEZCE.update(data.get('nalezce', {})) # Initialize empty dicts that will be populated immediately below @@ -314,5 +324,10 @@ DRUH_LOKALITY = {} JISTOTA = {} LOKALITA_ZACHOVALOST = {} PRISTUPNOST = {} +NALEZ_KATEGORIE = {} +DRUH_NALEZU = {} +SPECIFIKACE = {} +NALEZOVE_OKOLNOSTI = {} +NALEZCE = {} refresh_globals()