Compare commits

..

1 Commits

Author SHA1 Message Date
FinnHornhoover
7d2e0c29e0
Merge f048e918e1 into 9deba1956f 2023-12-25 02:31:48 +03:00

View File

@ -77,12 +77,10 @@ def fetch_my_ranks(pcuid, epid, date):
RaceResults.PlayerID, RaceResults.PlayerID,
Players.FirstName, Players.FirstName,
Players.LastName, Players.LastName,
RaceResults.Score MAX(RaceResults.Score) AS MaxScore
FROM RaceResults FROM RaceResults
INNER JOIN Players ON RaceResults.PlayerID=Players.PlayerID INNER JOIN Players ON RaceResults.PlayerID=Players.PlayerID
WHERE RaceResults.PlayerID=? AND EPID=? AND DATETIME(Timestamp, 'unixepoch') > DATETIME('now', ?) WHERE RaceResults.PlayerID=? AND EPID=? AND DATETIME(Timestamp, 'unixepoch') > DATETIME('now', ?);
ORDER BY RaceResults.Score DESC
LIMIT 1;
""" """
args = (pcuid, epid, date) args = (pcuid, epid, date)