From 8d0af35567de7f74372537d80e7a80dbc665f602 Mon Sep 17 00:00:00 2001 From: abarrau Date: Thu, 28 Sep 2023 19:09:18 +0200 Subject: [PATCH 1/9] Update EqslImporter.php --- application/libraries/EqslImporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/libraries/EqslImporter.php b/application/libraries/EqslImporter.php index 2ca8ff4b9..7cc35215a 100644 --- a/application/libraries/EqslImporter.php +++ b/application/libraries/EqslImporter.php @@ -68,10 +68,10 @@ class EqslImporter // Build parameters for eQSL inbox file $eqsl_params = http_build_query(array( - 'UserName' => $this->callsign, + 'UserName' => $this->qth_nickname, //$this->callsign, 'Password' => $password, 'RcvdSince' => $eqsl_last_qsl_date, - 'QTHNickname' => $this->qth_nickname, + //'QTHNickname' => $this->qth_nickname, 'ConfirmedOnly' => 1 )); From d750a6cd4b24606cde404e16fb5cdac0f38fd36f Mon Sep 17 00:00:00 2001 From: abarrau Date: Mon, 2 Oct 2023 20:43:37 +0200 Subject: [PATCH 2/9] eqsl: add date force update --- application/libraries/EqslImporter.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/libraries/EqslImporter.php b/application/libraries/EqslImporter.php index 7cc35215a..a535bc187 100644 --- a/application/libraries/EqslImporter.php +++ b/application/libraries/EqslImporter.php @@ -53,7 +53,7 @@ class EqslImporter } // Download confirmed QSO from eQSL inbox and import them - public function fetch($password) { + public function fetch($password, $eqsl_force_from_date) { if (empty($password) || empty($this->callsign)) { return $this->result('Missing username and/or password'); } @@ -63,15 +63,15 @@ class EqslImporter $q = $query->row(); $eqsl_url = $q->eqsl_download_url; - // Query the logbook to determine when the last eQSL confirmation was - $eqsl_last_qsl_date = $this->CI->eqslmethods_model->eqsl_last_qsl_rcvd_date($this->callsign, $this->qth_nickname); + // Query the logbook to determine when the last eQSL confirmation was / Or use date input from form // + $eqsl_last_qsl_date = (strtotime($eqsl_force_from_date)!==false)?date("Ymd",strtotime($eqsl_force_from_date)):$this->CI->eqslmethods_model->eqsl_last_qsl_rcvd_date($this->callsign, $this->qth_nickname); // Build parameters for eQSL inbox file $eqsl_params = http_build_query(array( - 'UserName' => $this->qth_nickname, //$this->callsign, + 'UserName' => $this->callsign, 'Password' => $password, 'RcvdSince' => $eqsl_last_qsl_date, - //'QTHNickname' => $this->qth_nickname, + 'QTHNickname' => $this->qth_nickname, 'ConfirmedOnly' => 1 )); From a290c2749d63b92a3ab6fc969521f11a64e18f4a Mon Sep 17 00:00:00 2001 From: abarrau Date: Mon, 2 Oct 2023 20:47:25 +0200 Subject: [PATCH 3/9] eqsl: add date force update --- application/controllers/Eqsl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index 67a2e0b26..d5d52e9cf 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -69,6 +69,7 @@ class eqsl extends CI_Controller { redirect('eqsl/import'); } + $eqsl_force_from_date = (!$this->input->post('eqsl_force_from_date')=="")?$this->input->post('eqsl_force_from_date'):""; foreach ($eqsl_locations->result_array() as $eqsl_location) { $this->eqslimporter->from_callsign_and_QTH( $eqsl_location['station_callsign'], @@ -76,7 +77,7 @@ class eqsl extends CI_Controller { $config['upload_path'] ); - $eqsl_results[] = $this->eqslimporter->fetch($eqsl_password); + $eqsl_results[] = $this->eqslimporter->fetch($eqsl_password,$eqsl_force_from_date); } } elseif ($this->input->post('eqslimport') == 'upload') { $station_id4upload=$this->input->post('station_profile'); From 57dc71292d7c736c36651a21cddb04ab82adfc2d Mon Sep 17 00:00:00 2001 From: abarrau Date: Mon, 2 Oct 2023 20:50:23 +0200 Subject: [PATCH 4/9] eqsl: add date force update --- application/libraries/EqslImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/EqslImporter.php b/application/libraries/EqslImporter.php index a535bc187..d84ad812e 100644 --- a/application/libraries/EqslImporter.php +++ b/application/libraries/EqslImporter.php @@ -53,7 +53,7 @@ class EqslImporter } // Download confirmed QSO from eQSL inbox and import them - public function fetch($password, $eqsl_force_from_date) { + public function fetch($password, $eqsl_force_from_date="") { if (empty($password) || empty($this->callsign)) { return $this->result('Missing username and/or password'); } From 119e5554f32962c344c6915bf96124cd7e67fbcb Mon Sep 17 00:00:00 2001 From: abarrau Date: Mon, 2 Oct 2023 20:51:30 +0200 Subject: [PATCH 5/9] eqsl: add date force update --- application/views/interface_assets/footer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index f72992c54..2b4ce734e 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -2249,7 +2249,9 @@ $(document).ready(function(){ if (isDarkModeTheme()) { $('[class*="buttons"]').css("color", "white"); } - + $('#eqsl_force_from_date').datetimepicker({ + format: 'YYYY/MM/DD', + }); From e223ec6e5a52a31b5866bfa22b59c43b7438e50e Mon Sep 17 00:00:00 2001 From: abarrau Date: Mon, 2 Oct 2023 20:54:03 +0200 Subject: [PATCH 6/9] eqsl: add date force update --- application/views/eqsl/import.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/application/views/eqsl/import.php b/application/views/eqsl/import.php index f01679066..7279fdd2a 100644 --- a/application/views/eqsl/import.php +++ b/application/views/eqsl/import.php @@ -53,7 +53,16 @@

Cloudlog will use the eQSL credentials from your Cloudlog user profile to connect to eQSL and download confirmations.

- +
+
+
+
+
+ +
+
+
+
From 727c94c61ddca3dfd2e49ed074553892c67f90ce Mon Sep 17 00:00:00 2001 From: abarrau Date: Mon, 2 Oct 2023 20:55:02 +0200 Subject: [PATCH 7/9] eqsl: add date force update --- application/models/Eqslmethods_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Eqslmethods_model.php b/application/models/Eqslmethods_model.php index 5972bd5d0..da183d0c7 100644 --- a/application/models/Eqslmethods_model.php +++ b/application/models/Eqslmethods_model.php @@ -149,7 +149,7 @@ class Eqslmethods_model extends CI_Model { } else { // No previous date (first time import has run?), so choose UNIX EPOCH! // Note: date is yyyy/mm/dd format - return '1970/01/01'; + return '19700101'; } } From 16f5bda4198055eeee22f1cd769edcb3d2ea6e59 Mon Sep 17 00:00:00 2001 From: abarrau Date: Tue, 3 Oct 2023 12:15:33 +0200 Subject: [PATCH 8/9] Update import.php eqsl: add date force update change import view page --- application/views/eqsl/import.php | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/application/views/eqsl/import.php b/application/views/eqsl/import.php index 7279fdd2a..764f0d0eb 100644 --- a/application/views/eqsl/import.php +++ b/application/views/eqsl/import.php @@ -29,7 +29,7 @@ -

+

Upload the Exported ADIF file from eQSL from the Download Inbox page, to mark QSOs as confirmed on eQSL.

Important Log files must have the file type .adi

@@ -47,23 +47,21 @@
- +

Cloudlog will use the eQSL credentials from your Cloudlog user profile to connect to eQSL and download confirmations.

+
+
+
+ +
+
+
+
+
-
-
-
-
-
- -
-
-
-
- +
+
From e7a6eb6c0e71c4db2f403ed19cd6220d8ee2a8b0 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 3 Oct 2023 13:59:37 +0100 Subject: [PATCH 9/9] Tag Cloudlog as 2.4.10 --- application/config/migration.php | 2 +- application/migrations/144_tag_2_4_10.php | 24 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 application/migrations/144_tag_2_4_10.php diff --git a/application/config/migration.php b/application/config/migration.php index 769923a31..ba2ca6cf8 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE; | */ -$config['migration_version'] = 143; +$config['migration_version'] = 144; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/144_tag_2_4_10.php b/application/migrations/144_tag_2_4_10.php new file mode 100644 index 000000000..413bfd9ce --- /dev/null +++ b/application/migrations/144_tag_2_4_10.php @@ -0,0 +1,24 @@ +db->where('option_name', 'version'); + $this->db->update('options', array('option_value' => '2.4.10')); + } + + public function down() + { + $this->db->where('option_name', 'version'); + $this->db->update('options', array('option_value' => '2.4.9')); + } +} \ No newline at end of file