Adjust SQL to exlude done requests

这个提交包含在:
phl0 2022-12-29 23:32:40 +01:00
父节点 c7e1f6a39f
当前提交 49af108202
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A

查看文件

@ -296,7 +296,7 @@ class Oqrs_model extends CI_Model {
public function oqrs_requests($location_list) {
if ($location_list != "") {
$sql = 'SELECT COUNT(*) AS number FROM oqrs JOIN station_profile ON oqrs.station_id = station_profile.station_id WHERE oqrs.station_id IN ('.$location_list.')';
$sql = 'SELECT COUNT(*) AS number FROM oqrs JOIN station_profile ON oqrs.station_id = station_profile.station_id WHERE oqrs.station_id IN ('.$location_list.') AND status < 2';
$query = $this->db->query($sql);
$row = $query->row();
return $row->number;