Update Last_Upload field inside lotw_cert table when tq8 upload is successful
这个提交包含在:
父节点
25f620a486
当前提交
91c172f315
共有 2 个文件被更改,包括 16 次插入 和 0 次删除
|
|
@ -253,6 +253,8 @@ class Lotw extends CI_Controller {
|
|||
|
||||
echo "Upload Successful - ".$filename_for_saving;
|
||||
|
||||
$this->LotwCert->last_upload($data['lotw_cert_info']->lotw_cert_id);
|
||||
|
||||
// Mark QSOs as Sent
|
||||
foreach ($qso_id_array as $qso_number) {
|
||||
$this->Logbook_model->mark_lotw_sent($qso_number);
|
||||
|
|
|
|||
|
|
@ -73,6 +73,20 @@ class LotwCert extends CI_Model {
|
|||
$this->db->where('user_id', $user_id);
|
||||
$this->db->delete('lotw_certs');
|
||||
}
|
||||
|
||||
function last_upload($certID) {
|
||||
|
||||
$data = array(
|
||||
'last_upload' => date("Y-m-d H:i:s"),
|
||||
);
|
||||
|
||||
|
||||
$this->db->where('lotw_cert_id', $certID);
|
||||
|
||||
$this->db->update('lotw_certs', $data);
|
||||
|
||||
return "Updated";
|
||||
}
|
||||
|
||||
function empty_table($table) {
|
||||
$this->db->empty_table($table);
|
||||
|
|
|
|||
正在加载…
在新工单中引用