From 244be9b57c9fa4fe85f50b820320bd0973445704 Mon Sep 17 00:00:00 2001 From: mbridak Date: Fri, 6 Dec 2024 09:53:28 -0800 Subject: [PATCH] @mbridak add RTC to K1USN --- CHANGELOG.md | 1 + README.md | 1 + Things_To_Do.md | 1 + not1mm/lib/version.py | 2 +- not1mm/plugins/k1usn_sst.py | 22 +++++++++++++++++++++- pyproject.toml | 2 +- 6 files changed, 26 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da001536..4b0f28cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog +- [24-12-6] Add RTC to K1USN. -[24-12-5-1] ARRL 160 gets rtc. - [24-12-5] Add 'real time' score posting to external sites. - [24-12-4] Merged PR from @alduhoo Add STATION_CALLSIGN field to ADIF output diff --git a/README.md b/README.md index 9c92b564..4efbb29f 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's. ## Recent Changes (Polishing the Turd) +- [24-12-6] Add RTC to K1USN. -[24-12-5-1] ARRL 160 gets rtc. - [24-12-5] Add 'real time' score posting to external sites. - [24-12-4] Merged PR from @alduhoo Add STATION_CALLSIGN field to ADIF output diff --git a/Things_To_Do.md b/Things_To_Do.md index 3b5df237..e6fd6ac8 100644 --- a/Things_To_Do.md +++ b/Things_To_Do.md @@ -8,3 +8,4 @@ - Add Macros to send hex codes to radio. Icom Voice memories etc. - Autopopulate exchange based on previous contact on a different band. - Change sort order of log window. +- add RTC to arrl 10m, rac, raem, arrl rtty roundup, cq 160 cw, k1usn \ No newline at end of file diff --git a/not1mm/lib/version.py b/not1mm/lib/version.py index 8225598c..f269c189 100644 --- a/not1mm/lib/version.py +++ b/not1mm/lib/version.py @@ -1,3 +1,3 @@ """It's the version""" -__version__ = "24.12.5.1" +__version__ = "24.12.6" diff --git a/not1mm/plugins/k1usn_sst.py b/not1mm/plugins/k1usn_sst.py index 50e7060c..13b0f184 100644 --- a/not1mm/plugins/k1usn_sst.py +++ b/not1mm/plugins/k1usn_sst.py @@ -28,7 +28,7 @@ from PyQt6 import QtWidgets -from not1mm.lib.plugin_common import gen_adif, get_points +from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml from not1mm.lib.version import __version__ logger = logging.getLogger(__name__) @@ -506,3 +506,23 @@ def check_call_history(self): self.other_1.setText(f"{result.get('Name', '')}") if self.other_2.text() == "": self.other_2.setText(f"{result.get('Exch1', '')}") + + +# --------RTC Stuff----------- +def get_mults(self): + """""" + + mults = {} + mults["state"] = show_mults(self) + return mults + + +def just_points(self): + """""" + result = self.database.fetch_points() + if result is not None: + score = result.get("Points", "0") + if score is None: + score = "0" + return int(score) + return 0 diff --git a/pyproject.toml b/pyproject.toml index 48224d49..c1ad23ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "not1mm" -version = "24.12.5.1" +version = "24.12.6" description = "NOT1MM Logger" readme = "README.md" requires-python = ">=3.9"