mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
Adding extra stuff to the output
This commit is contained in:
parent
f38a762aca
commit
2c5547dac8
2 changed files with 12 additions and 3 deletions
|
|
@ -17,6 +17,7 @@ export async function GET(
|
|||
name: portfolio.name,
|
||||
cost: portfolio.cost,
|
||||
epcBreakdownPostRetrofit: portfolio.epcBreakdownPostRetrofit,
|
||||
numberOfProperties: portfolio.numberOfProperties,
|
||||
nUnitsToRetrofit: portfolio.nUnitsToRetrofit,
|
||||
co2PerUnitPostRetrofit: portfolio.co2PerUnitPostRetrofit,
|
||||
energyBillPerUnitPostRetrofit: portfolio.energyBillPerUnitPostRetrofit,
|
||||
|
|
@ -56,7 +57,12 @@ export async function GET(
|
|||
},
|
||||
{
|
||||
title: "# Units",
|
||||
scenarios: [{ scenarioName: portfolioName, data: "" }],
|
||||
scenarios: [
|
||||
{
|
||||
scenarioName: portfolioName,
|
||||
data: String(data[0].numberOfProperties) || "",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "# Units to retrofit",
|
||||
|
|
|
|||
|
|
@ -112,13 +112,16 @@ export async function getOverviewPortfolioData(
|
|||
scenarioName: "Today",
|
||||
data: String(data[0].numberOfProperties) || "",
|
||||
},
|
||||
{ scenarioName: portfolioName, data: "" },
|
||||
{
|
||||
scenarioName: portfolioName,
|
||||
data: String(data[0].numberOfProperties) || "",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "# Units to retrofit",
|
||||
scenarios: [
|
||||
{ scenarioName: "Today", data: "" },
|
||||
{ scenarioName: "Today", data: "-" },
|
||||
{
|
||||
scenarioName: portfolioName,
|
||||
data: String(data[0].nUnitsToRetrofit) || "",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue