Upload files to "/"
All checks were successful
Build and Push Docker Image / test (push) Successful in 1m1s
Build and Push Docker Image / build_and_push (push) Successful in 2m30s

This commit is contained in:
admin user 2025-03-31 13:53:20 +00:00
parent 1152a701b4
commit 1d3d28213e
3 changed files with 10 additions and 2 deletions

View File

@ -101,6 +101,7 @@ def __main__(
payfrequency: str, payfrequency: str,
monthsatresidence: str, monthsatresidence: str,
state: str, state: str,
zip: str,
#thxresponse-> #thxresponse->
EventType: str, EventType: str,
DigitalIdConfidence: str, DigitalIdConfidence: str,
@ -129,6 +130,7 @@ def __main__(
"payfrequency" : payfrequency, "payfrequency" : payfrequency,
"monthsatresidence" : monthsatresidence, "monthsatresidence" : monthsatresidence,
"state" : state, "state" : state,
"zip" : zip,
"EventType" : EventType, "EventType" : EventType,
"DigitalIdConfidence" : DigitalIdConfidence, "DigitalIdConfidence" : DigitalIdConfidence,
"RiskRating" : RiskRating, "RiskRating" : RiskRating,
@ -171,7 +173,8 @@ def __main__(
logger.info(result) logger.info(result)
# State Check # State Check
state_value = combined_df["state"].iloc[0] state_value = combined_df["state"].iloc[0]
if pd.notnull(state_value) and state_value == "ZZ": zip_value = combined_df["zip"].iloc[0]
if (pd.notnull(state_value) and state_value == "ZZ") or (pd.notnull(zip_value) and zip_value == "86445"):
result["hd_score_m1"] = 1250 result["hd_score_m1"] = 1250
logger.info("post_processed_data after state check") logger.info("post_processed_data after state check")
logger.info(result) logger.info(result)

View File

@ -93,6 +93,10 @@
"state": { "state": {
"type": ["string", "null"], "type": ["string", "null"],
"description": "State of the current residence." "description": "State of the current residence."
},
"zip": {
"type": ["string", "null"],
"description": "Zip of the current residence."
} }
}, },
"required": [] "required": []

View File

@ -27,7 +27,8 @@ input_json = {
"lengthatbank": None, "lengthatbank": None,
"educationlevel": None, "educationlevel": None,
"monthsatresidence": None, "monthsatresidence": None,
"state": None "state": None,
"zip": None
} }