summaryrefslogtreecommitdiff
path: root/scrapers
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-03-03 16:25:19 +0100
committerMartin Fischer <martin@push-f.com>2021-03-03 16:25:19 +0100
commit672c8cdcfb78db189deead02533fd1cfe1faecfb (patch)
tree3da2684dbd489747fcc4a5bcc8cf90cbbe7b55d9 /scrapers
parent602f0f5787d2588edf60bc21f6b71fa9836564ef (diff)
at.py: skip abbr if null
Diffstat (limited to 'scrapers')
-rwxr-xr-xscrapers/at.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scrapers/at.py b/scrapers/at.py
index 54b2402..d07f8f6 100755
--- a/scrapers/at.py
+++ b/scrapers/at.py
@@ -44,11 +44,13 @@ for page in pages:
continue
if info['Typ'].startswith('Vertrag -'):
continue
- normen[info['Gesetzesnummer']] = dict(
+ data = dict(
title=info['Kurztitel'],
url=info['GesamteRechtsvorschriftUrl'],
- abbr=info.get('Abkuerzung')
)
+ if 'Abkuerzung' in info:
+ data['abbr'] = info['Abkuerzung']
+ normen[info['Gesetzesnummer']] = data
with open('laws/at.json', 'w') as f:
json.dump(list(normen.values()), f, indent=2, ensure_ascii=False)