From c632d2509589f11637addfb8c89b699a17dd4adc Mon Sep 17 00:00:00 2001 From: "F.N. Claessen" Date: Wed, 26 Jul 2023 11:25:58 +0200 Subject: [PATCH] refactor: retire the 'modern' label on save_to_db Signed-off-by: F.N. Claessen --- flexmeasures/api/common/utils/api_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flexmeasures/api/common/utils/api_utils.py b/flexmeasures/api/common/utils/api_utils.py index f8ae2216e..6736002bd 100644 --- a/flexmeasures/api/common/utils/api_utils.py +++ b/flexmeasures/api/common/utils/api_utils.py @@ -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, @@ -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()