File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# update/at_postleitzahl.py - download list of Austrian postal codes
5
5
#
6
- # Copyright (C) 2018-2021 Arthur de Jong
6
+ # Copyright (C) 2018-2025 Arthur de Jong
7
7
#
8
8
# This library is free software; you can redistribute it and/or
9
9
# modify it under the terms of the GNU Lesser General Public
54
54
print ('# version %s published %s' % (
55
55
data ['version' ]['id' ], data ['version' ]['published' ]))
56
56
# build an ordered list of postal codes
57
- results = []
57
+ results = set ()
58
58
for row in data ['data' ]:
59
59
if row ['adressierbar' ] == 'Ja' :
60
- results .append ((str (row ['plz' ]), row ['ort' ], regions [row ['bundesland' ]]))
60
+ results .add ((str (row ['plz' ]), row ['ort' ], regions [row ['bundesland' ]]))
61
61
for code , location , region in sorted (results ):
62
62
print ('%s location="%s" region="%s"' % (code , location , region ))
You can’t perform that action at this time.
0 commit comments