diff --git a/app/forms/building.py b/app/forms/building.py index 0966af0558ab1b812dc75135522acfe049fbc3b9..de2699a7375b1ce2c60d4986c0ae027833757131 100644 --- a/app/forms/building.py +++ b/app/forms/building.py @@ -12,3 +12,4 @@ class BuildingForm: zip = wtf.StringField(validators=[validators.zip_]) building_id = wtf.IntegerField() lot_id = wtf.IntegerField() + targeting_score = wtf.FloatField() diff --git a/app/models/building.py b/app/models/building.py index b9d3a7398df2d7632fa75c64f918bb53120c35fa..d95071aa818c406d0fafcdc93350aae1f8bbec24 100644 --- a/app/models/building.py +++ b/app/models/building.py @@ -19,9 +19,10 @@ class Building(BaseModel): ProcColumn('building_id'), ProcColumn('lot_id'), ProcColumn('bin'), + ProcColumn('targeting_score'), ) - def __init__(self, street_address, bbl, borough, zipcode, building_id, lot_id, bin): + def __init__(self, street_address, bbl, borough, zipcode, building_id, lot_id, bin, targeting_score): self.street_address = street_address self.bbl = bbl self.borough = borough @@ -29,6 +30,7 @@ class Building(BaseModel): self.building_id = building_id self.lot_id = lot_id self.bin = bin + self.targeting_score = targeting_score def __str__(self): return "Building: {} located at {}".format(self.building_id, self.street_address)