fix: State code issue fix in regional module(Italy)
This commit is contained in:
parent
463a3cf8cf
commit
1915e15a9e
@ -300,6 +300,9 @@ def get_progressive_name_and_number(doc):
|
|||||||
return progressive_name, progressive_number
|
return progressive_name, progressive_number
|
||||||
|
|
||||||
def set_state_code(doc, method):
|
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"]):
|
if not (hasattr(doc, "state_code") and doc.country in ["Italy", "Italia", "Italian Republic", "Repubblica Italiana"]):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user