From 059ca2307fee458d4aa99e2a5b7f3568ce0944a8 Mon Sep 17 00:00:00 2001 From: Worros Date: Fri, 11 Feb 2011 17:53:18 +0800 Subject: [PATCH] Database: def getSiteTourneyNos(self, site) --- pyfpdb/Database.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 00cc0657..88fbe166 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -634,6 +634,18 @@ class Database: return c.fetchone()[0] #end def getTourneyCount + def getSiteTourneyNos(self, site): + c = self.connection.cursor() + # FIXME: Take site and actually fetch siteId from that + # Fixed to Winamax atm + q = self.sql.query['getSiteTourneyNos'] + q = q.replace('%s', self.sql.query['placeholder']) + c.execute(q, (14,)) + alist = [] + for row in c.fetchall(): + alist.append(row) + return alist + def get_actual_seat(self, hand_id, name): c = self.connection.cursor() c.execute(self.sql.query['get_actual_seat'], (hand_id, name))