Compare commits

...

2 Commits

Author SHA1 Message Date
FinnHornhoover 0203ad29cf
Merge a02b683272 into 9deba1956f 2023-12-25 06:08:21 +00:00
FinnHornhoover a02b683272 reverted personal ranking sql 2023-12-25 09:07:44 +03:00
1 changed files with 4 additions and 2 deletions

View File

@ -77,10 +77,12 @@ def fetch_my_ranks(pcuid, epid, date):
RaceResults.PlayerID,
Players.FirstName,
Players.LastName,
MAX(RaceResults.Score) AS MaxScore
RaceResults.Score
FROM RaceResults
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)