diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 1c9eb771..c85a65f2 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -301,6 +301,8 @@ class Lotw extends CI_Controller { set_time_limit(0); $this->load->model('lotw_user'); + $this->lotw_user->empty_table(); + $row = 1; if (($handle = fopen("https://lotw.arrl.org/lotw-user-activity.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { diff --git a/application/models/Lotw_user.php b/application/models/Lotw_user.php index e145f668..33fae44c 100644 --- a/application/models/Lotw_user.php +++ b/application/models/Lotw_user.php @@ -9,8 +9,8 @@ class Lotw_user extends CI_Model { } - function empty_table($table) { - $this->db->empty_table($table); + function empty_table() { + $this->db->empty_table('lotw_userlist'); } function add_lotwuser($callsign, $date) {