From e23c96dc9d842216997e67c043ef20a65f206192 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 5 Jul 2026 18:36:32 +0300 Subject: [PATCH] Update: 2026-07-05 18:36:32 --- backend/bot/cron_predictive_demand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/bot/cron_predictive_demand.php b/backend/bot/cron_predictive_demand.php index e2e1df2a..cddbcab3 100644 --- a/backend/bot/cron_predictive_demand.php +++ b/backend/bot/cron_predictive_demand.php @@ -51,8 +51,8 @@ $targetHourNext = ($currentHour + 1) % 24; // الساعة القادمة (ال $sqlHistory = " SELECT - ROUND(SUBSTRING_INDEX(start_location, ',', 1) / :grid) * :grid AS cell_lat, - ROUND(SUBSTRING_INDEX(start_location, ',', -1) / :grid) * :grid AS cell_lng, + ROUND(SUBSTRING_INDEX(start_location, ',', 1) / {$GRID_SIZE}) * {$GRID_SIZE} AS cell_lat, + ROUND(SUBSTRING_INDEX(start_location, ',', -1) / {$GRID_SIZE}) * {$GRID_SIZE} AS cell_lng, 'JO' AS country_code, COUNT(*) AS demand_score FROM ride @@ -71,7 +71,6 @@ $sqlHistory = " try { $stmt = $conRide->prepare($sqlHistory); - $stmt->bindValue(':grid', $GRID_SIZE, PDO::PARAM_STR); $stmt->bindValue(':next_hour', $targetHourNext, PDO::PARAM_INT); $stmt->bindValue(':dow', $currentDow, PDO::PARAM_INT); $stmt->bindValue(':weeks', $WEEKS_HISTORY, PDO::PARAM_INT);