mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Update Last_Upload field inside lotw_cert table when tq8 upload is successful
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user