Upload files to "/"
This commit is contained in:
parent
1152a701b4
commit
1d3d28213e
5
block.py
5
block.py
@ -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)
|
||||||
|
|||||||
@ -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": []
|
||||||
|
|||||||
@ -27,7 +27,8 @@ input_json = {
|
|||||||
"lengthatbank": None,
|
"lengthatbank": None,
|
||||||
"educationlevel": None,
|
"educationlevel": None,
|
||||||
"monthsatresidence": None,
|
"monthsatresidence": None,
|
||||||
"state": None
|
"state": None,
|
||||||
|
"zip": None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user