[fix] truncate postcodes that are longer than specified length
This commit is contained in:
@@ -357,7 +357,7 @@ class OpenAddressesFormatter(object):
|
||||
postcode = None
|
||||
else:
|
||||
if postcode_length:
|
||||
postcode = postcode.zfill(postcode_length)
|
||||
postcode = postcode.zfill(postcode_length)[:postcode_length]
|
||||
|
||||
components[AddressFormatter.POSTCODE] = postcode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user