Skip to content

Commit 9ff7e81

Browse files
committed
[Awards][GMDX] error in SQL
1 parent 0cee638 commit 9ff7e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/models/Gmdxsummer_model.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function get_week($end_date, $band, $mode)
1717
SELECT COUNT(DISTINCT SUBSTRING(COL_GRIDSQUARE, 1, 4)) AS count
1818
FROM " . $table_name . "
1919
WHERE station_id in (" . $location_list . ") AND COL_MODE = '" . $mode . "' AND COL_BAND = '" . $band . "'
20-
AND (COL_TIME_ON >= '2024-05-13 00:00:00' AND COL_TIME_ON <= '. $end_date .')
20+
AND (COL_TIME_ON >= '2024-05-13 00:00:00' AND COL_TIME_ON <= '" . $end_date . "')
2121
");
2222

2323
return $query->row()->count;

0 commit comments

Comments
 (0)