Merge pull request #16754 from deepeshgarg007/state_code

fix: State code issue fix
This commit is contained in:
Saurabh 2019-02-21 18:21:24 +05:30 committed by GitHub
commit e5ff28a92c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,6 +300,9 @@ def get_progressive_name_and_number(doc):
return progressive_name, progressive_number
def set_state_code(doc, method):
if not doc.get('state'):
return
if not (hasattr(doc, "state_code") and doc.country in ["Italy", "Italia", "Italian Republic", "Repubblica Italiana"]):
return