mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2024-11-22 22:10:05 +00:00
Compare commits
2 Commits
7d2e0c29e0
...
0203ad29cf
Author | SHA1 | Date | |
---|---|---|---|
|
0203ad29cf | ||
|
a02b683272 |
@ -77,10 +77,12 @@ def fetch_my_ranks(pcuid, epid, date):
|
|||||||
RaceResults.PlayerID,
|
RaceResults.PlayerID,
|
||||||
Players.FirstName,
|
Players.FirstName,
|
||||||
Players.LastName,
|
Players.LastName,
|
||||||
MAX(RaceResults.Score) AS MaxScore
|
RaceResults.Score
|
||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user