From 8b25c67ba912ae03b10aee94dc24530af1489fbc Mon Sep 17 00:00:00 2001 From: lastpoet Date: Wed, 6 Oct 2010 15:57:33 +0100 Subject: [PATCH] basic optimisation in stats --- pyfpdb/SQL.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index 46931d46..59361490 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -4334,9 +4334,9 @@ class Sql: ################################ # Counts for DB stats window ################################ - self.query['getHandCount'] = "SELECT COUNT(id) FROM Hands" - self.query['getTourneyCount'] = "SELECT COUNT(id) FROM Tourneys" - self.query['getTourneyTypeCount'] = "SELECT COUNT(id) FROM TourneyTypes" + self.query['getHandCount'] = "SELECT COUNT(*) FROM Hands" + self.query['getTourneyCount'] = "SELECT COUNT(*) FROM Tourneys" + self.query['getTourneyTypeCount'] = "SELECT COUNT(*) FROM TourneyTypes" ################################ # queries for dumpDatabase