diff --git a/backend/apis/GoogleSolarApi.py b/backend/apis/GoogleSolarApi.py index 41ec7c11..a99d96c9 100644 --- a/backend/apis/GoogleSolarApi.py +++ b/backend/apis/GoogleSolarApi.py @@ -192,8 +192,6 @@ class GoogleSolarApi: if not self.need_to_store: return - logger.info("Storing to database") - scenarios_data = self.panel_performance.head(1)[ [ "n_panels", @@ -221,7 +219,6 @@ class GoogleSolarApi: scenarios_data["scenario_type"] = scenario_type scenarios_data = scenarios_data.to_dict(orient="records") - # TODO: Rather than just doing a straight insert, we should overwrite what's already there if it exists store_batch_data( session=session, api_data=self.insights_data, diff --git a/backend/app/plan/router.py b/backend/app/plan/router.py index b5cb96f6..d1578cc1 100644 --- a/backend/app/plan/router.py +++ b/backend/app/plan/router.py @@ -651,8 +651,6 @@ async def trigger_plan(body: PlanTriggerRequest): ) # Store the data in the database - # TODO: Rather than just doing a straight insert, we should overwrite what's already there if it - # exists solar_api_client.save_to_db( session=session, uprns_to_location=[