From 00ae2d5756631cbe975deeed69245aa787668e0c Mon Sep 17 00:00:00 2001 From: mbridak Date: Wed, 6 Nov 2024 20:00:03 -0800 Subject: [PATCH] @mbridak Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Weekly RTTY --- CHANGELOG.md | 1 + README.md | 1 + not1mm/lib/version.py | 2 +- not1mm/plugins/arrl_vhf_jan.py | 10 ++++++++++ not1mm/plugins/arrl_vhf_jun.py | 10 ++++++++++ not1mm/plugins/arrl_vhf_sep.py | 10 ++++++++++ not1mm/plugins/cq_160_cw.py | 12 ++++++++++++ not1mm/plugins/cq_160_ssb.py | 12 ++++++++++++ not1mm/plugins/cq_ww_cw.py | 10 ++++++++++ not1mm/plugins/cq_ww_rtty.py | 12 ++++++++++++ not1mm/plugins/cq_ww_ssb.py | 10 ++++++++++ not1mm/plugins/stew_perry_topband.py | 10 ++++++++++ not1mm/plugins/weekly_rtty.py | 12 ++++++++++++ pyproject.toml | 2 +- 14 files changed, 112 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e22508d..68f79e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog +- [24-11-6] Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Weekly RTTY - [24-11-5] Fix crash with bad qrz credentials. - [24-11-3-1] Fixed CWT ESM, Add Call History to CWT, Helvetia, WFD, NAQP, K1USN. Add ESM Helvetia. - [24-11-3] Added RAEM contest diff --git a/README.md b/README.md index f2ec0b0..112a499 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's. ## Recent Changes (Polishing the Turd) +- [24-11-6] Added Call history to ARRL VHF, CQ160, CQWW, StewPerry, Weekly RTTY - [24-11-5] Fix crash with bad qrz credentials. - [24-11-3-1] Fixed CWT ESM, Add Call History to CWT, Helvetia, WFD, NAQP, K1USN. Add ESM Helvetia. - [24-11-3] Added RAEM contest diff --git a/not1mm/lib/version.py b/not1mm/lib/version.py index 1ab5a47..41a0df0 100644 --- a/not1mm/lib/version.py +++ b/not1mm/lib/version.py @@ -1,3 +1,3 @@ """It's the version""" -__version__ = "24.11.5" +__version__ = "24.11.6" diff --git a/not1mm/plugins/arrl_vhf_jan.py b/not1mm/plugins/arrl_vhf_jan.py index 41c65a8..aa4eee7 100644 --- a/not1mm/plugins/arrl_vhf_jan.py +++ b/not1mm/plugins/arrl_vhf_jan.py @@ -535,3 +535,13 @@ def ft8_handler(the_packet: dict): ALTEREGO.other_1.setText(my_grid) ALTEREGO.other_2.setText(their_grid) ALTEREGO.save_contact() + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('Loc1', '')}") diff --git a/not1mm/plugins/arrl_vhf_jun.py b/not1mm/plugins/arrl_vhf_jun.py index eb8f97e..021a9ca 100644 --- a/not1mm/plugins/arrl_vhf_jun.py +++ b/not1mm/plugins/arrl_vhf_jun.py @@ -503,3 +503,13 @@ def ft8_handler(the_packet: dict): ALTEREGO.other_1.setText(my_grid) ALTEREGO.other_2.setText(their_grid) ALTEREGO.save_contact() + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('Loc1', '')}") diff --git a/not1mm/plugins/arrl_vhf_sep.py b/not1mm/plugins/arrl_vhf_sep.py index eee29e1..f428f63 100644 --- a/not1mm/plugins/arrl_vhf_sep.py +++ b/not1mm/plugins/arrl_vhf_sep.py @@ -503,3 +503,13 @@ def ft8_handler(the_packet: dict): ALTEREGO.other_1.setText(my_grid) ALTEREGO.other_2.setText(their_grid) ALTEREGO.save_contact() + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('Loc1', '')}") diff --git a/not1mm/plugins/cq_160_cw.py b/not1mm/plugins/cq_160_cw.py index 01a6c1c..46ee35e 100644 --- a/not1mm/plugins/cq_160_cw.py +++ b/not1mm/plugins/cq_160_cw.py @@ -448,3 +448,15 @@ def recalculate_mults(self): contact["IsMultiplier1"] = 0 self.database.change_contact(contact) trigger_update(self) + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + # if self.other_1.text() == "": + # self.other_1.setText(f"{result.get('CQZone', '')}") + # if self.other_2.text() == "": + # self.other_2.setText(f"{result.get('State', '')}") diff --git a/not1mm/plugins/cq_160_ssb.py b/not1mm/plugins/cq_160_ssb.py index 477741f..af16896 100644 --- a/not1mm/plugins/cq_160_ssb.py +++ b/not1mm/plugins/cq_160_ssb.py @@ -448,3 +448,15 @@ def recalculate_mults(self): contact["IsMultiplier1"] = 0 self.database.change_contact(contact) trigger_update(self) + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + # if self.other_1.text() == "": + # self.other_1.setText(f"{result.get('CQZone', '')}") + # if self.other_2.text() == "": + # self.other_2.setText(f"{result.get('State', '')}") diff --git a/not1mm/plugins/cq_ww_cw.py b/not1mm/plugins/cq_ww_cw.py index 7d048da..e7c2bc7 100644 --- a/not1mm/plugins/cq_ww_cw.py +++ b/not1mm/plugins/cq_ww_cw.py @@ -518,3 +518,13 @@ def process_esm(self, new_focused_widget=None, with_enter=False): self.save_contact() continue self.process_function_key(button) + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('CQZone', '')}") diff --git a/not1mm/plugins/cq_ww_rtty.py b/not1mm/plugins/cq_ww_rtty.py index d92304e..7261fcb 100644 --- a/not1mm/plugins/cq_ww_rtty.py +++ b/not1mm/plugins/cq_ww_rtty.py @@ -637,3 +637,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False): continue sendstring = f"{sendstring}{self.process_macro(button.toolTip())} " self.fldigi_util.send_string(sendstring) + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_1.text() == "": + self.other_1.setText(f"{result.get('CQZone', '')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('State', '')}") diff --git a/not1mm/plugins/cq_ww_ssb.py b/not1mm/plugins/cq_ww_ssb.py index f20f0cb..3a82492 100644 --- a/not1mm/plugins/cq_ww_ssb.py +++ b/not1mm/plugins/cq_ww_ssb.py @@ -506,3 +506,13 @@ def process_esm(self, new_focused_widget=None, with_enter=False): self.save_contact() continue self.process_function_key(button) + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('CQZone', '')}") diff --git a/not1mm/plugins/stew_perry_topband.py b/not1mm/plugins/stew_perry_topband.py index ea0396a..5801d82 100644 --- a/not1mm/plugins/stew_perry_topband.py +++ b/not1mm/plugins/stew_perry_topband.py @@ -364,3 +364,13 @@ def cabrillo(self, file_encoding): def recalculate_mults(self): """Recalculates multipliers after change in logged qso.""" + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_1.text() == "": + self.other_1.setText(f"{result.get('Loc1', '')}") diff --git a/not1mm/plugins/weekly_rtty.py b/not1mm/plugins/weekly_rtty.py index cfdae1f..903fb77 100644 --- a/not1mm/plugins/weekly_rtty.py +++ b/not1mm/plugins/weekly_rtty.py @@ -572,3 +572,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False): continue sendstring = f"{sendstring}{self.process_macro(button.toolTip())} " self.fldigi_util.send_string(sendstring) + + +def check_call_history(self): + """""" + result = self.database.fetch_call_history(self.callsign.text()) + print(f"{result=}") + if result: + self.history_info.setText(f"{result.get('UserText','')}") + if self.other_1.text() == "": + self.other_1.setText(f"{result.get('Name', '')}") + if self.other_2.text() == "": + self.other_2.setText(f"{result.get('Sect', '')}") diff --git a/pyproject.toml b/pyproject.toml index 6097f51..f71676b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "not1mm" -version = "24.11.5" +version = "24.11.6" description = "NOT1MM Logger" readme = "README.md" requires-python = ">=3.9"