diff --git a/not1mm/lib/plugin_common.py b/not1mm/lib/plugin_common.py index f72a4c1..34e64c3 100644 --- a/not1mm/lib/plugin_common.py +++ b/not1mm/lib/plugin_common.py @@ -21,10 +21,11 @@ def gen_adif(self, cabrillo_name: str, contest_id=""): """ now = datetime.datetime.now() date_time = now.strftime("%Y-%m-%d_%H-%M-%S") + station_callsign = self.station.get('Call', '').upper() filename = ( str(Path.home()) + "/" - + f"{self.station.get('Call', '').upper()}_{cabrillo_name}_{date_time}.adi" + + f"{station_callsign}_{cabrillo_name}_{date_time}.adi" ) log = self.database.fetch_all_contacts_asc() try: @@ -71,6 +72,15 @@ def gen_adif(self, cabrillo_name: str, contest_id=""): except TypeError: ... + try: + print( + f"{station_callsign}", + end="\r\n", + file=file_descriptor, + ) + except TypeError: + ... + try: print( f"{hiscall.upper()}",