f3-data-models 0.1.14__tar.gz → 0.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {f3_data_models-0.1.14 → f3_data_models-0.1.15}/PKG-INFO +1 -1
- {f3_data_models-0.1.14 → f3_data_models-0.1.15}/f3_data_models/utils.py +2 -2
- {f3_data_models-0.1.14 → f3_data_models-0.1.15}/pyproject.toml +1 -1
- {f3_data_models-0.1.14 → f3_data_models-0.1.15}/README.md +0 -0
- {f3_data_models-0.1.14 → f3_data_models-0.1.15}/f3_data_models/__init__.py +0 -0
- {f3_data_models-0.1.14 → f3_data_models-0.1.15}/f3_data_models/models.py +0 -0
@@ -167,7 +167,7 @@ class DbManager:
|
|
167
167
|
def update_record(cls: T, id, fields):
|
168
168
|
session = get_session()
|
169
169
|
try:
|
170
|
-
session.query(cls).filter(cls.
|
170
|
+
session.query(cls).filter(cls.id == id).update(
|
171
171
|
fields, synchronize_session="fetch"
|
172
172
|
)
|
173
173
|
session.flush()
|
@@ -250,7 +250,7 @@ class DbManager:
|
|
250
250
|
def delete_record(cls: T, id):
|
251
251
|
session = get_session()
|
252
252
|
try:
|
253
|
-
session.query(cls).filter(cls.
|
253
|
+
session.query(cls).filter(cls.id == id).delete()
|
254
254
|
session.flush()
|
255
255
|
finally:
|
256
256
|
session.commit()
|
File without changes
|
File without changes
|
File without changes
|