Skip to content

Commit

Permalink
adding a small switch for detecting just the street number
Browse files Browse the repository at this point in the history
  • Loading branch information
lhr0909 committed Mar 17, 2021
1 parent 34e3373 commit dc2309e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyap/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ def __init__(self, **args):
package = 'pyap' + '.source_' + self.country + \
'.data'
data = importlib.import_module(package)
self.rules = data.full_address
if self.rule_name == 'full_street':
self.rules = data.full_street
else:
self.rules = data.full_address

except AttributeError:
raise e.NoCountrySelected(
Expand Down

0 comments on commit dc2309e

Please sign in to comment.