mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Merge pull request #646 from Hestia-Homes/portfolio-diagnostics
fixed typo
This commit is contained in:
commit
7acb898c09
2 changed files with 3 additions and 3 deletions
|
|
@ -542,7 +542,7 @@ async def model_engine(body: PlanTriggerRequest):
|
||||||
sheet_name=body.sheet_name,
|
sheet_name=body.sheet_name,
|
||||||
header_row=0,
|
header_row=0,
|
||||||
)
|
)
|
||||||
logger.into("Got the plan input from excel")
|
logger.info("Got the plan input from excel")
|
||||||
|
|
||||||
# We now handle the case where the input data is a Domna standardised assset list
|
# We now handle the case where the input data is a Domna standardised assset list
|
||||||
if body.file_format == "domna_asset_list":
|
if body.file_format == "domna_asset_list":
|
||||||
|
|
|
||||||
|
|
@ -75,8 +75,8 @@ df = df.sort_values("property_id", ascending=True)
|
||||||
|
|
||||||
agg = df.groupby("property_id").size().reset_index(name="n_plans")
|
agg = df.groupby("property_id").size().reset_index(name="n_plans")
|
||||||
agg = agg.sort_values("n_plans", ascending=True)
|
agg = agg.sort_values("n_plans", ascending=True)
|
||||||
agg[agg["n_plans"] != 1]
|
agg[agg["n_plans"] != 2]
|
||||||
assert all(agg["n_plans"] == 1)
|
assert all(agg["n_plans"] == 2)
|
||||||
|
|
||||||
|
|
||||||
def delete_plan_batch(session: Session, plan_ids: list[int]):
|
def delete_plan_batch(session: Session, plan_ids: list[int]):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue