From 1edd75c91382d300d5b0340360771d9eedbc74ec Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 4 Nov 2025 10:53:22 +0000 Subject: [PATCH] debugged the solar missing data to push to database --- backend/apis/GoogleSolarApi.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/backend/apis/GoogleSolarApi.py b/backend/apis/GoogleSolarApi.py index dcf08fb5..00fb98d8 100644 --- a/backend/apis/GoogleSolarApi.py +++ b/backend/apis/GoogleSolarApi.py @@ -1031,4 +1031,22 @@ class GoogleSolarApi: }, ] ) + + # We add the key elements that are required for the database + panel_performance['lifetime_ac_kwh'] = panel_performance.apply( + self.lifetime_production_kwh, + axis=1, + efficiency_depreciation_factor=self.efficiency_depreciation_factor, + installation_life_span=self.installation_life_span, + column_name="initial_ac_kwh_per_year" + ) + + panel_performance['lifetime_dc_kwh'] = panel_performance.apply( + self.lifetime_production_kwh, + axis=1, + efficiency_depreciation_factor=self.efficiency_depreciation_factor, + installation_life_span=self.installation_life_span, + column_name="yearly_dc_energy", + ) + return panel_performance