add rollback() to make sure db locks are released
This commit is contained in:
parent
fddb29b3b8
commit
e60c254204
|
@ -87,6 +87,7 @@ class GuiGraphViewer (threading.Thread):
|
|||
self.canvas = None
|
||||
|
||||
self.mainHBox.show_all()
|
||||
self.db.db.rollback()
|
||||
|
||||
#################################
|
||||
#
|
||||
|
@ -224,6 +225,7 @@ class GuiGraphViewer (threading.Thread):
|
|||
self.cursor.execute(tmp)
|
||||
#returns (HandId,Winnings,Costs,Profit)
|
||||
winnings = self.db.cursor.fetchall()
|
||||
self.db.db.rollback()
|
||||
|
||||
if(winnings == ()):
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user