From 05f3f5eee2d4c4dc2a7cafd90c5559a16ee237ac Mon Sep 17 00:00:00 2001 From: eblade Date: Thu, 13 Nov 2008 19:42:35 -0500 Subject: [PATCH] fix indentation typo --- pyfpdb/GuiGraphViewer.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyfpdb/GuiGraphViewer.py b/pyfpdb/GuiGraphViewer.py index eacaf676..4f3ac38d 100644 --- a/pyfpdb/GuiGraphViewer.py +++ b/pyfpdb/GuiGraphViewer.py @@ -102,12 +102,12 @@ class GuiGraphViewer (threading.Thread): profit=range(len(winnings)) for i in profit: - self.cursor.execute(self.sql.query['getRingProfitFromHandId'], (name, winnings[i][0], site)) - spent = self.db.cursor.fetchone() - if not spent[0] == None: - profit[i]=(i, winnings[i][1]-spent[0]) - else: - profit[i] = (i, 0) + self.cursor.execute(self.sql.query['getRingProfitFromHandId'], (name, winnings[i][0], site)) + spent = self.db.cursor.fetchone() + if not spent[0] == None: + profit[i]=(i, winnings[i][1]-spent[0]) + else: + profit[i] = (i, 0) # todo: this probably adds in flat spots on your graph for hands you were not involved in (ie, observing, sitting out, etc) # and has that counted in your hand totals. Someone needs to figure out the SQL for totally removing any hand you're not in from the equation entirely