Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/class-spotmap-database.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function get_point_counts_by_feed(string $from = '', string $to = ''): ar
}
}
$rows = $wpdb->get_results(
"SELECT feed_name, COUNT(*) AS cnt, MIN(time) AS first_point, MAX(time) AS last_point FROM " . $wpdb->prefix . "spotmap_points WHERE feed_name IS NOT NULL {$where}GROUP BY feed_name ORDER BY feed_name COLLATE utf8mb4_unicode_ci",
"SELECT feed_name, COUNT(*) AS cnt, MIN(time) AS first_point, MAX(time) AS last_point FROM " . $wpdb->prefix . "spotmap_points WHERE feed_name IS NOT NULL {$where}GROUP BY feed_name ORDER BY feed_name",
ARRAY_A
);
$counts = [];
Expand Down
Loading