Skip to content

Commit

Permalink
#48: Remove old closing of sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Sep 19, 2019
1 parent ee9265a commit 77aeb54
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/database_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def commit_changes(self):
"""
log.info(f" Commiting changes to {self.table}")
self.session.commit()
log.info(f" Closing DB session")
self.session.close()


class CountQuery(Query):
Expand Down Expand Up @@ -66,7 +64,6 @@ def __init__(self, table):

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 77aeb54

Please sign in to comment.