From b248270135cb2ebdab3ece41a87a8c6c6ef1e5c1 Mon Sep 17 00:00:00 2001 From: Gerko de Roo Date: Tue, 26 Jan 2010 23:34:08 +0100 Subject: [PATCH] Sorting routine caused errors when sorted on gametype, since it used the starthand sort routine --- pyfpdb/GuiPlayerStats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/GuiPlayerStats.py b/pyfpdb/GuiPlayerStats.py index 7a3213e8..a8f85c60 100644 --- a/pyfpdb/GuiPlayerStats.py +++ b/pyfpdb/GuiPlayerStats.py @@ -278,7 +278,7 @@ class GuiPlayerStats (threading.Thread): except: a = 0.0 try: b = float(b) except: b = 0.0 - if n == 0: + if n == 0 and grid == 1: #make sure it only works on the starting hands a1,a2,a3 = ranks[a[0]], ranks[a[1]], (a+'o')[2] b1,b2,b3 = ranks[b[0]], ranks[b[1]], (b+'o')[2] if a1 > b1 or ( a1 == b1 and (a2 > b2 or (a2 == b2 and a3 > b3) ) ):