From a698b2e16de7a477834449ae6be696c1aed0a535 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 4 Mar 2010 17:50:51 +0800 Subject: [PATCH] PlayerStats: Fix sorting in # Hands col Patch from Almer Visser. Using %d causes Gtk to order as a string rather than a number. Convert to %1.0f and issue disappears. --- pyfpdb/GuiPlayerStats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/GuiPlayerStats.py b/pyfpdb/GuiPlayerStats.py index 39c6c727..b856a5e2 100644 --- a/pyfpdb/GuiPlayerStats.py +++ b/pyfpdb/GuiPlayerStats.py @@ -92,7 +92,7 @@ class GuiPlayerStats (threading.Thread): , ["hand", False, "Hand", 0.0, "%s", "str"] # true not allowed for this line , ["plposition", False, "Posn", 1.0, "%s", "str"] # true not allowed for this line (set in code) , ["pname", False, "Name", 0.0, "%s", "str"] # true not allowed for this line (set in code) - , ["n", True, "Hds", 1.0, "%d", "str"] + , ["n", True, "Hds", 1.0, "%1.0f", "str"] , ["avgseats", False, "Seats", 1.0, "%3.1f", "str"] , ["vpip", True, "VPIP", 1.0, "%3.1f", "str"] , ["pfr", True, "PFR", 1.0, "%3.1f", "str"]