From c7014250cd9cee0107207d9c4369a9669e391ad5 Mon Sep 17 00:00:00 2001 From: mbridak Date: Sat, 2 Nov 2024 21:14:04 -0700 Subject: [PATCH] @mbridak add check_call_history --- not1mm/plugins/arrl_ss_cw.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/not1mm/plugins/arrl_ss_cw.py b/not1mm/plugins/arrl_ss_cw.py index b2fb6ab..426a9e6 100644 --- a/not1mm/plugins/arrl_ss_cw.py +++ b/not1mm/plugins/arrl_ss_cw.py @@ -134,6 +134,16 @@ def prefill(self): field.setText(serial_nr) +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('CK','')}{result.get('Sect', '')}") + + def points(self): """Calc point""" return 2