mirror of
https://github.com/ARUP-CAS/aiscr-qgis-amcr-viewer.git
synced 2026-06-17 11:22:53 +02:00
Heslář pristupnost: přeskočení záznamů bez platného kódu
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í.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user