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 update save #75

Merged
merged 1 commit into from
May 30, 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
3 changes: 0 additions & 3 deletions gspconsumer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from nowcasting_datamodel.connection import DatabaseConnection
from nowcasting_datamodel.models.base import Base_Forecast
from nowcasting_datamodel.models.gsp import GSPYield, GSPYieldSQL, LocationSQL
from nowcasting_datamodel.read.read import update_latest_input_data_last_updated
from pvlive_api import PVLive
from sqlalchemy.orm import Session

Expand Down Expand Up @@ -267,8 +266,6 @@ def save_to_database(session: Session, gsp_yields: List[GSPYieldSQL]):
session.add_all(gsp_yields)
session.commit()

update_latest_input_data_last_updated(session=session, component="gsp")


if __name__ == "__main__":
app()
Loading