Skip to content

Commit

Permalink
@mbridak Add some functions needed for RTC services to text contests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Dec 5, 2024
1 parent 263a88e commit 1ee2a3e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
22 changes: 21 additions & 1 deletion not1mm/plugins/cwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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
22 changes: 21 additions & 1 deletion not1mm/plugins/icwc_mst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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

0 comments on commit 1ee2a3e

Please sign in to comment.