Skip to content

Commit

Permalink
Add db.commit for nested session (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadzyah authored Aug 16, 2023
1 parent 6b7c71a commit 7b779fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/test_observer/data_access/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ def get_or_create(
except IntegrityError:
# Query and return the existing instance
instance = db.query(model).filter_by(**filter_kwargs).one()

db.commit()
return instance

0 comments on commit 7b779fc

Please sign in to comment.