From 4f2ff49ec846d377c4c0844da42cf2e5ecbe5721 Mon Sep 17 00:00:00 2001 From: Peter Dudfield <34686298+peterdudfield@users.noreply.github.com> Date: Thu, 4 Jan 2024 15:22:40 +0000 Subject: [PATCH] remove old PV database (#315) --- src/database.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/database.py b/src/database.py index 55b7bdf..8003cd2 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"""