This commit is contained in:
Kenneth Kehl
2023-08-29 14:54:30 -07:00
parent 19dcd7a48b
commit 1ecb747c6d
588 changed files with 34100 additions and 23589 deletions

View File

@@ -9,7 +9,6 @@ class DAOException(SQLAlchemyError):
class DAOClass(object):
class Meta:
model = None
@@ -20,7 +19,7 @@ class DAOClass(object):
def update_instance(self, inst, update_dict, _commit=True):
# Make sure the id is not included in the update_dict
update_dict.pop('id')
update_dict.pop("id")
self.Meta.model.query.filter_by(id=inst.id).update(update_dict)
if _commit:
db.session.commit()