f3-data-models 0.1.14__py3-none-any.whl → 0.1.15__py3-none-any.whl

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/utils.py CHANGED
@@ -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.get_id() == id).update(
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.get_id() == id).delete()
253
+ session.query(cls).filter(cls.id == id).delete()
254
254
  session.flush()
255
255
  finally:
256
256
  session.commit()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: f3-data-models
3
- Version: 0.1.14
3
+ Version: 0.1.15
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  Home-page: https://github.com/F3-Nation/f3-data-models
6
6
  License: MIT
@@ -0,0 +1,6 @@
1
+ f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ f3_data_models/models.py,sha256=p99wcQLWZnXNWEoKQOdoqRXafDH8Kz8hwqaQBau0LZg,37218
3
+ f3_data_models/utils.py,sha256=pbDwYhTXrzoqVwY_gTv5rvViQoQ5uuZsPvFuIPYrwNQ,8816
4
+ f3_data_models-0.1.15.dist-info/METADATA,sha256=XFhVPTqBfJvqg6gUHaNdjqqvJkeG1iYcETk2MO8ngx8,2714
5
+ f3_data_models-0.1.15.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
6
+ f3_data_models-0.1.15.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- f3_data_models/models.py,sha256=p99wcQLWZnXNWEoKQOdoqRXafDH8Kz8hwqaQBau0LZg,37218
3
- f3_data_models/utils.py,sha256=_i6BOYfuvr9bTT1WEpzD-XgAQzKTm_p3kE1m-6a0glI,8828
4
- f3_data_models-0.1.14.dist-info/METADATA,sha256=6UK4Rfu9uD8AEqDosqEsuFt0LCAOM09PMFfK-so8ER0,2714
5
- f3_data_models-0.1.14.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
6
- f3_data_models-0.1.14.dist-info/RECORD,,