Skip to content

Commit

Permalink
@mbridak add check_call_history
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Nov 3, 2024
1 parent 5fbc25b commit c701425
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions not1mm/plugins/arrl_ss_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c701425

Please sign in to comment.