diff --git a/backend/bot/cron_predictive_demand.php b/backend/bot/cron_predictive_demand.php index c7cbdc33..e2e1df2a 100644 --- a/backend/bot/cron_predictive_demand.php +++ b/backend/bot/cron_predictive_demand.php @@ -61,8 +61,8 @@ $sqlHistory = " AND HOUR(created_at) = :next_hour AND DAYOFWEEK(created_at) = :dow AND created_at >= DATE_SUB(NOW(), INTERVAL :weeks WEEK) - AND pickup_lat != 0 - AND pickup_lng != 0 + AND start_location != '' + AND start_location IS NOT NULL GROUP BY cell_lat, cell_lng, country_code HAVING demand_score >= 2 ORDER BY demand_score DESC