Fix: bestRecord bug

This commit is contained in:
2018-06-06 07:34:45 +09:00
parent b4f0531db0
commit 26b47536dc
7 changed files with 29 additions and 12 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ function get_history_record($maestro_id, $app_id, $user_id, $date) {
SELECT DATE(BR.RecordDateTime) AS Date, MAX(BR.BestRecord) AS HighScore, AA.AppName AS AppName
FROM moty_best_record BR
INNER JOIN moty_app AS AA
ON BR.MaestroID = ? AND BR.UserID = ? AND DATE(BR.RecordDateTime) < ? AND BR.AppID = ? AND BR.AppID = AA.AppID
ON BR.MaestroID = ? AND BR.UserID = ? AND DATE(BR.RecordDateTime) <= ? AND BR.AppID = ? AND BR.AppID = AA.AppID
GROUP BY DATE(BR.RecordDateTime)
ORDER BY BR.RecordDateTime DESC
LIMIT 7