From f82ca8254b1a942a9f75ea0143a4e0398fa6fb69 Mon Sep 17 00:00:00 2001 From: Beu Date: Mon, 2 Oct 2023 23:37:08 +0200 Subject: [PATCH] limit records to not reach the manialink size limit --- Beu/ClimbTheMap.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Beu/ClimbTheMap.php b/Beu/ClimbTheMap.php index e476dad..767637c 100644 --- a/Beu/ClimbTheMap.php +++ b/Beu/ClimbTheMap.php @@ -32,7 +32,7 @@ class ClimbTheMap implements ManialinkPageAnswerListener, TimerListener, Command * Constants */ const PLUGIN_ID = 192; - const PLUGIN_VERSION = 1.3; + const PLUGIN_VERSION = 1.4; const PLUGIN_NAME = 'ClimbTheMap'; const PLUGIN_AUTHOR = 'Beu'; @@ -312,7 +312,8 @@ class ClimbTheMap implements ManialinkPageAnswerListener, TimerListener, Command WHERE `mapIndex` = ? ORDER BY (CASE WHEN `time` > 0 THEN `time` ELSE 9999999999 END) ASC, `altitude` DESC, - `date` ASC'; + `date` ASC + LIMIT 500'; $stmt = $mysqli->prepare($query ); $stmt->bind_param('i', $mapIndex);