Skip to content

Commit

Permalink
remove old PV database
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 4, 2024
1 parent 08f0096 commit b0a6bad
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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"""

Expand Down

0 comments on commit b0a6bad

Please sign in to comment.