Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VIPS and ICBC jurisdiction #250

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/form_handler/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def prep_icbc_payload(**args)->tuple:
# get jurisdiction data
icbc_jurisdiction_code=''
juris_data = db.session.query(JurisdictionCrossRef) \
.filter(JurisdictionCrossRef.prime_jurisdiction_code == tmp_jurisdictionvalue) \
.filter(JurisdictionCrossRef.jurisdiction_code == tmp_jurisdictionvalue) \
.all()
if len(juris_data) == 0:
logging.error("jurisdiction not found")
Expand Down Expand Up @@ -616,7 +616,7 @@ def prep_vips_payload(**args)->tuple:
# get jurisdiction data
vips_jurisdiction_code=''
juris_data = db.session.query(JurisdictionCrossRef) \
.filter(JurisdictionCrossRef.prime_jurisdiction_code == tmp_jurisdictionvalue) \
.filter(JurisdictionCrossRef.jurisdiction_code == tmp_jurisdictionvalue) \
.all()
if len(juris_data) == 0:
logging.error("jurisdiction not found")
Expand Down Expand Up @@ -811,7 +811,7 @@ def prep_vips_payload(**args)->tuple:
# get jurisdiction data
vips_jurisdiction_code=''
juris_data = db.session.query(JurisdictionCrossRef) \
.filter(JurisdictionCrossRef.prime_jurisdiction_code == tmp_vehi_jurisdictionvalue) \
.filter(JurisdictionCrossRef.jurisdiction_code == tmp_vehi_jurisdictionvalue) \
.all()
if len(juris_data) == 0:
logging.error("jurisdiction not found")
Expand Down Expand Up @@ -843,7 +843,7 @@ def prep_vips_payload(**args)->tuple:
# get jurisdiction data
vips_jurisdiction_code=''
juris_data = db.session.query(JurisdictionCrossRef) \
.filter(JurisdictionCrossRef.prime_jurisdiction_code == tmp_nsc_jurisdictionvalue) \
.filter(JurisdictionCrossRef.jurisdiction_code == tmp_nsc_jurisdictionvalue) \
.all()
if len(juris_data) == 0:
logging.error("jurisdiction not found")
Expand Down
Loading