From 15d7e1fab50bddee5620f6ce60bef01ad2be4211 Mon Sep 17 00:00:00 2001 From: Worros Date: Sat, 11 Apr 2009 17:10:00 +0800 Subject: [PATCH] Add a couple of queries for GUI building --- pyfpdb/FpdbSQLQueries.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyfpdb/FpdbSQLQueries.py b/pyfpdb/FpdbSQLQueries.py index f1981d71..fe04aec6 100644 --- a/pyfpdb/FpdbSQLQueries.py +++ b/pyfpdb/FpdbSQLQueries.py @@ -1153,6 +1153,12 @@ class FpdbSQLQueries: and hprof2.PlPosition = stats.PlPosition) order by stats.category, stats.limittype, stats.bigBlind, cast(stats.PlPosition as signed) """ + if(self.dbname == 'MySQL InnoDB') or (self.dbname == 'PostgreSQL') or (self.dbname == 'SQLite'): + self.query['getGames'] = """SELECT DISTINCT category from Gametypes""" + + if(self.dbname == 'MySQL InnoDB') or (self.dbname == 'PostgreSQL') or (self.dbname == 'SQLite'): + self.query['getLimits'] = """SELECT DISTINCT bigBlind from Gametypes ORDER by bigBlind DESC""" + if __name__== "__main__": from optparse import OptionParser