Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove old PV database #315

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading