introduce and use analyzer for postcodes

This commit is contained in:
Sarah Hoffmann
2022-05-24 21:45:06 +02:00
parent 18864afa8a
commit ca7b46511d
5 changed files with 114 additions and 20 deletions

View File

@@ -98,7 +98,7 @@ class _PostcodeSanitizer:
obj.address.pop(pos)
else:
postcode.name = formatted[0]
postcode.set_attr('lookup', formatted[1])
postcode.set_attr('variant', formatted[1])
def scan(self, postcode, country):