[eQSL] Mark QSOs. Refined the update instead of updating everything without filter.

pull/1527/head
Andreas 2022-07-04 20:12:39 +02:00
rodzic 79cc55075c
commit dfce53073d
1 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -7,7 +7,14 @@ class Eqslmethods_model extends CI_Model {
'COL_EQSL_QSL_SENT' => 'Y',
'COL_EQSL_QSLSDATE' => date('Y-m-d')." 00:00:00",
);
$this->db->group_start();
$this->db->where('COL_EQSL_QSL_SENT', 'N');
$this->db->or_where('COL_EQSL_QSL_SENT', 'R');
$this->db->or_where('COL_EQSL_QSL_SENT', 'Q');
$this->db->or_where('COL_EQSL_QSL_SENT', null);
$this->db->group_end();
$this->db->update($this->config->item('table_name'), $data);
}