SQL: Add function to fetch tourney ids
This commit is contained in:
parent
4a7a24eb68
commit
2a586cf460
|
@ -4342,6 +4342,13 @@ class Sql:
|
||||||
WHERE s.name=%s AND t.siteTourneyNo=%s
|
WHERE s.name=%s AND t.siteTourneyNo=%s
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
self.query['getSiteTourneyNos'] = """SELECT t.siteTourneyNo
|
||||||
|
FROM Tourneys t
|
||||||
|
INNER JOIN TourneyTypes tt ON (t.tourneyTypeId = tt.id)
|
||||||
|
INNER JOIN Sites s ON (tt.siteId = s.id)
|
||||||
|
WHERE tt.siteId=%s
|
||||||
|
"""
|
||||||
|
|
||||||
self.query['getTourneyPlayerInfo'] = """SELECT tp.*
|
self.query['getTourneyPlayerInfo'] = """SELECT tp.*
|
||||||
FROM Tourneys t
|
FROM Tourneys t
|
||||||
INNER JOIN TourneyTypes tt ON (t.tourneyTypeId = tt.id)
|
INNER JOIN TourneyTypes tt ON (t.tourneyTypeId = tt.id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user