lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.20-44-gc118723

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.20-44-gc118723



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  c118723cd3485ddcbc89df7c3953c1e77d898a52 (commit)
      from  1a87baf1190c2098b141d8bcd6e4d459c0424329 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=c118723cd3485ddcbc89df7c3953c1e77d898a52

commit c118723cd3485ddcbc89df7c3953c1e77d898a52
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Mon May 5 20:18:40 2025 +0200

    Remove duplicate Austrian post offices

diff --git a/update/at_postleitzahl.py b/update/at_postleitzahl.py
index 2171823..13f91c6 100755
--- a/update/at_postleitzahl.py
+++ b/update/at_postleitzahl.py
@@ -3,7 +3,7 @@
 
 # update/at_postleitzahl.py - download list of Austrian postal codes
 #
-# Copyright (C) 2018-2021 Arthur de Jong
+# Copyright (C) 2018-2025 Arthur de Jong
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -54,9 +54,9 @@ if __name__ == '__main__':
     print('# version %s published %s' % (
         data['version']['id'], data['version']['published']))
     # build an ordered list of postal codes
-    results = []
+    results = set()
     for row in data['data']:
         if row['adressierbar'] == 'Ja':
-            results.append((str(row['plz']), row['ort'], 
regions[row['bundesland']]))
+            results.add((str(row['plz']), row['ort'], 
regions[row['bundesland']]))
     for code, location, region in sorted(results):
         print('%s location="%s" region="%s"' % (code, location, region))

-----------------------------------------------------------------------

Summary of changes:
 update/at_postleitzahl.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
python-stdnum