From 581fd5a57738b130de5e15d35d39a6a6fe538973 Mon Sep 17 00:00:00 2001 From: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com> Date: Sat, 7 Dec 2024 10:25:22 +0000 Subject: [PATCH] add extra to backup (#91) * add extra to backup * update --- gspconsumer/backup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gspconsumer/backup.py b/gspconsumer/backup.py index 60ac6cd..3d35c95 100644 --- a/gspconsumer/backup.py +++ b/gspconsumer/backup.py @@ -108,6 +108,8 @@ def make_gsp_yields_from_national( datetime_utc=national_gsp_yield.datetime_utc, solar_generation_kw=national_gsp_yield.solar_generation_kw * factor, regime=national_gsp_yield.regime, + capacity_mwp=location.installed_capacity_mw, + pvlive_updated_utc=national_gsp_yield.pvlive_updated_utc, ) gsp_yield.location = location gsp_yields.append(gsp_yield)