Skip to content

Commit

Permalink
#34: Temporary fix of 48
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Aug 29, 2019
1 parent bd06b89 commit 225f182
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ def __init__(self, table):
super().__init__(table)
self.include_related_entities = False

def commit_changes(self):
log.info("Closing DB session")
self.session.close()

def execute_query(self):
self.commit_changes()

Expand Down

0 comments on commit 225f182

Please sign in to comment.