From e87e38dbac7d44ca19fca58fb5c87c4b3772a3e5 Mon Sep 17 00:00:00 2001 From: jisangs Date: Tue, 15 Sep 2026 20:37:52 +0900 Subject: [PATCH] =?UTF-8?q?=ED=83=80=EC=9E=90=20=EC=8B=9C=ED=97=98=20?= =?UTF-8?q?=EC=B5=9C=EA=B7=BC=207=EB=B2=88=20=EA=B8=B0=EB=A1=9D=20?= =?UTF-8?q?=EA=B2=80=EC=83=89=20query=EB=AC=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/php/db/typing_exam_collection.php | 3 +-- src/web/server/record/history_record.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/web/php/db/typing_exam_collection.php b/src/web/php/db/typing_exam_collection.php index 4ff9485..eef2867 100644 --- a/src/web/php/db/typing_exam_collection.php +++ b/src/web/php/db/typing_exam_collection.php @@ -169,12 +169,11 @@ class TypingExamCollection extends DBMethodContainer FROM typing_exam_record WHERE MaestroID = ? AND PlayerID = ? AND WritingID = ? AND RecordDateTime < DATE(?) + INTERVAL 1 DAY - AND RecordDateTime >= DATE(?) - INTERVAL 7 DAY GROUP BY DATE(RecordDateTime) ORDER BY RecordDateTime DESC LIMIT 7"; $stmt = $this->mysqli->prepare($query); - $stmt->bind_param('iisss', $maestroID, $playerID, $writingID, $date, $date); + $stmt->bind_param('iiis', $maestroID, $playerID, $writingID, $date); $stmt->execute(); $stmt->bind_result($date, $highestRecord); diff --git a/src/web/server/record/history_record.php b/src/web/server/record/history_record.php index 1591a96..0815441 100644 --- a/src/web/server/record/history_record.php +++ b/src/web/server/record/history_record.php @@ -25,7 +25,6 @@ function get_history_record($maestro_id, $app_id, $player_id, $date) { ON BR.AppID = AA.AppID WHERE BR.MaestroID = ? AND BR.AppID = ? AND BR.PlayerID = ? AND BR.RecordDateTime < DATE(?) + INTERVAL 1 DAY - AND BR.RecordDateTime >= DATE(?) - INTERVAL 7 DAY GROUP BY DATE(BR.RecordDateTime) ORDER BY DATE(BR.RecordDateTime) DESC LIMIT 7 @@ -37,7 +36,7 @@ function get_history_record($maestro_id, $app_id, $player_id, $date) { $query = "SELECT DATE(BR.RecordDateTime) AS Date, MIN(BR.BestRecord) AS HighScore, AA.AppName AS AppName".$query; } $stmt = $db_conn->prepare($query); - $stmt->bind_param('iisss', $maestro_id, $app_id, $player_id, $date, $date); + $stmt->bind_param('iiis', $maestro_id, $app_id, $player_id, $date); $stmt->execute(); $stmt->bind_result($date, $score, $app_name);