mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
debugging issue with missing uprn
This commit is contained in:
parent
a948688df6
commit
29f8fecdd0
1 changed files with 5 additions and 2 deletions
|
|
@ -293,8 +293,11 @@ def get_epc_data(data, cleaned, cleaning_data, created_at):
|
||||||
eligibility.check_eco4()
|
eligibility.check_eco4()
|
||||||
|
|
||||||
if eligibility.eco4_warmfront["eligible"]:
|
if eligibility.eco4_warmfront["eligible"]:
|
||||||
|
if eligibility.epc["uprn"] == "":
|
||||||
|
eligibility.epc["uprn"] = int(property_meta["row_id"].split("_")[1])
|
||||||
|
|
||||||
scoring_dictionary = prepare_model_data_row(
|
scoring_dictionary = prepare_model_data_row(
|
||||||
property_id=eligibility.epc["uprn"],
|
property_id=property_meta["row_id"],
|
||||||
modelling_epc=eligibility.epc,
|
modelling_epc=eligibility.epc,
|
||||||
cleaned=cleaned,
|
cleaned=cleaned,
|
||||||
cleaning_data=cleaning_data,
|
cleaning_data=cleaning_data,
|
||||||
|
|
@ -333,7 +336,7 @@ def get_epc_data(data, cleaned, cleaning_data, created_at):
|
||||||
def app():
|
def app():
|
||||||
data = load_data()
|
data = load_data()
|
||||||
|
|
||||||
data["row_id"] = ["ha16" + str(i) for i in range(0, len(data))]
|
data["row_id"] = ["ha16_" + str(i) for i in range(0, len(data))]
|
||||||
|
|
||||||
cleaned = read_from_s3(
|
cleaned = read_from_s3(
|
||||||
s3_file_name="cleaned_epc_data/cleaned.bson",
|
s3_file_name="cleaned_epc_data/cleaned.bson",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue