Skip to content

Commit

Permalink
add city_town_part to result_company_info
Browse files Browse the repository at this point in the history
  • Loading branch information
mildamade authored and illagrenan committed Dec 18, 2021
1 parent 9751df9 commit 94da343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ares_util/ares.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def call_ares(company_id):

company_record = response_root['D:VBAS']
address = company_record['D:AA']
full_text_address = address.get('D:AT', '')
full_text_address = address.get('D:AT','')

result_company_info = {
'legal': {
Expand All @@ -85,6 +85,7 @@ def call_ares(company_id):
'region': address.get('D:NOK'),
'city': build_city(address.get('D:N'), full_text_address),
'city_part': address.get('D:NCO'),
'city_town_part': address.get('D:NMC'),
'street': build_czech_street(address.get('D:NU', str()), address.get('D:N'),
address.get('D:NCO'),
address.get('D:CD') or address.get('D:CA'),
Expand Down

0 comments on commit 94da343

Please sign in to comment.