Merge pull request #529 from Hestia-Homes/eco-eligiblity-bug

debugged the solar missing data to push to database
This commit is contained in:
KhalimCK 2025-11-04 10:54:02 +00:00 committed by GitHub
commit bae23c6d08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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