From e60c2542045a0b74bdd6e1d9b2feadfbfc0aee78 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 3 May 2009 01:46:18 +0100 Subject: [PATCH] add rollback() to make sure db locks are released --- pyfpdb/GuiGraphViewer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index b1f87989..91de84e1 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -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