From b0a6bade7c47876cff832cf152b3570e951986d5 Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Thu, 4 Jan 2024 14:24:12 +0000 Subject: [PATCH] remove old PV database --- src/database.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/database.py b/src/database.py index 55b7bdf1..8003cd26 100644 --- a/src/database.py +++ b/src/database.py @@ -43,7 +43,6 @@ from utils import filter_forecast_values, floor_30_minutes_dt, get_start_datetime db_conn = DatabaseConnection(url=os.getenv("DB_URL", "not_set")) -pv_db_conn = DatabaseConnection(url=os.getenv("DB_URL_PV", "not_set")) logger = structlog.stdlib.get_logger() @@ -265,13 +264,6 @@ def get_session(): yield s -def get_session_pv(): - """Get database sessions to pv database""" - - with pv_db_conn.get_session() as s: - yield s - - def get_latest_national_forecast_from_database(session: Session) -> Forecast: """Get the national level forecast from the database"""