From 63ae10e612f6fcd5633b412d939fe6aaedae1701 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 5 Jul 2026 18:35:00 +0300 Subject: [PATCH] Update: 2026-07-05 18:34:59 --- backend/bot/cron_predictive_demand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/bot/cron_predictive_demand.php b/backend/bot/cron_predictive_demand.php index 87b59c9f..c7cbdc33 100644 --- a/backend/bot/cron_predictive_demand.php +++ b/backend/bot/cron_predictive_demand.php @@ -51,9 +51,9 @@ $targetHourNext = ($currentHour + 1) % 24; // الساعة القادمة (ال $sqlHistory = " SELECT - ROUND(pickup_lat / :grid) * :grid AS cell_lat, - ROUND(pickup_lng / :grid) * :grid AS cell_lng, - country_code, + ROUND(SUBSTRING_INDEX(start_location, ',', 1) / :grid) * :grid AS cell_lat, + ROUND(SUBSTRING_INDEX(start_location, ',', -1) / :grid) * :grid AS cell_lng, + 'JO' AS country_code, COUNT(*) AS demand_score FROM ride WHERE