diff --git a/not1mm/plugins/cwt.py b/not1mm/plugins/cwt.py index 5d70848..c47e50d 100644 --- a/not1mm/plugins/cwt.py +++ b/not1mm/plugins/cwt.py @@ -33,7 +33,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__) @@ -519,3 +519,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/not1mm/plugins/icwc_mst.py b/not1mm/plugins/icwc_mst.py index 8d17c43..c31ef1b 100644 --- a/not1mm/plugins/icwc_mst.py +++ b/not1mm/plugins/icwc_mst.py @@ -34,7 +34,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__) @@ -493,3 +493,23 @@ def check_call_history(self): self.history_info.setText(f"{result.get('UserText','')}") if self.other_2.text() == "": self.other_2.setText(f"{result.get('Name', '')}") + + +# --------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