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 """