Skip to content

Commit

Permalink
remove update save (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield authored May 30, 2024
1 parent 3f84bb3 commit fedeac5
Showing 1 changed file with 0 additions and 3 deletions.
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()

0 comments on commit fedeac5

Please sign in to comment.