Skip to content

Commit

Permalink
refactor: retire the 'modern' label on save_to_db
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <[email protected]>
  • Loading branch information
Flix6x committed Jul 26, 2023
1 parent 77b2d0c commit c632d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flexmeasures/api/common/utils/api_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from sqlalchemy.exc import IntegrityError

from flexmeasures.data import db
from flexmeasures.data.utils import save_to_db as modern_save_to_db
from flexmeasures.data.utils import save_to_db
from flexmeasures.api.common.responses import (
invalid_replacement,
ResponseTuple,
Expand Down Expand Up @@ -81,7 +81,7 @@ def save_and_enqueue(
save_changed_beliefs_only: bool = True,
) -> ResponseTuple:
# Attempt to save
status = modern_save_to_db(
status = save_to_db(
data, save_changed_beliefs_only=save_changed_beliefs_only
)
db.session.commit()
Expand Down

0 comments on commit c632d25

Please sign in to comment.