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