From ced3e8ac729910974625c7d10bf152a39e9828e0 Mon Sep 17 00:00:00 2001 From: steffen123 Date: Wed, 14 Jul 2010 22:44:10 +0200 Subject: [PATCH] TOURNEY: rename a query --- pyfpdb/Database.py | 2 +- pyfpdb/SQL.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 3b5d32e2..358aed8b 100644 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -2084,7 +2084,7 @@ class Database: raise FpdbParseError("invalid source in Database.createOrUpdateTourneysPlayers") cursor = self.get_cursor() - cursor.execute (self.sql.query['getTourneysPlayersId'].replace('%s', self.sql.query['placeholder']), + cursor.execute (self.sql.query['getTourneysPlayersIdByIds'].replace('%s', self.sql.query['placeholder']), (hand.tourneyId, playerId)) result=cursor.fetchone() diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index a3204bea..afac2d90 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -3727,7 +3727,7 @@ class Sql: WHERE id=%s """ - self.query['getTourneysPlayersId'] = """SELECT id + self.query['getTourneysPlayersIdByIds'] = """SELECT id FROM TourneysPlayers WHERE tourneyId=%s AND playerId+0=%s """