Skip to content

Commit

Permalink
@mbridak Add RTC to Winter Field Day, Stew Perry, REF, RAEM, NAQP, LZ…
Browse files Browse the repository at this point in the history
…-DX, JIDX
  • Loading branch information
mbridak committed Dec 10, 2024
1 parent 6d4c66b commit 2ae88e4
Show file tree
Hide file tree
Showing 15 changed files with 164 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- [24-12-9] Add RTC to Winter Field Day, Stew Perry, REF, RAEM, NAQP, LZ-DX, JIDX
- [24-12-8-2] Add RTC to ARRL 10M, Tweaked cabrillo file output.
- [24-12-8-1] Changed cabrillo names for Weekly RTTY, CW Ops CWT and K1USN SST.
- [24-12-8] Fix: Weekly RTTY mults. Add RTC to Weekly RTTY.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.

## Recent Changes (Polishing the Turd)

- [24-12-9] Add RTC to Winter Field Day, Stew Perry, REF, RAEM, NAQP, LZ-DX, JIDX
- [24-12-8-2] Add RTC to ARRL 10M, Tweaked cabrillo file output.
- [24-12-8-1] Changed cabrillo names for Weekly RTTY, CW Ops CWT and K1USN SST.
- [24-12-8] Fix: Weekly RTTY mults. Add RTC to Weekly RTTY.
Expand Down
2 changes: 1 addition & 1 deletion not1mm/lib/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""It's the version"""

__version__ = "24.12.8.2"
__version__ = "24.12.9"
14 changes: 13 additions & 1 deletion not1mm/plugins/jidx_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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 @@ -488,3 +488,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["country"] = show_mults(self)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
14 changes: 13 additions & 1 deletion not1mm/plugins/jidx_ph.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,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 @@ -457,3 +457,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["country"] = show_mults(self)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
14 changes: 13 additions & 1 deletion not1mm/plugins/lz-dx.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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__

Expand Down Expand Up @@ -624,3 +624,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["state"] = show_mults(self)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
14 changes: 13 additions & 1 deletion not1mm/plugins/naqp_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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 @@ -559,3 +559,15 @@ 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('State', '')}")


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["state"] = show_mults(self)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
22 changes: 17 additions & 5 deletions not1mm/plugins/naqp_rtty.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
# Exchange: NA: Name + (state/DC/province/country)
# non-NA: Name
# Work stations: Once per band
# QSO Points: NA station: 1 point per QSO
# non-NA station: 1 point per QSO with an NA station
# QSO Points: NA station: 1 point per QSO
# non-NA station: 1 point per QSO with an NA station
# Multipliers: Each US state and DC (including KH6/KL7) once per band
# Each VE province/territory once per band
# Each North American country (except W/VE) once per band
# Each VE province/territory once per band
# Each North American country (except W/VE) once per band
# Score Calculation: Total score = total QSO points x total mults
# E-mail logs to: (none)
# Upload log at: http://www.ncjweb.com/naqplogsubmit/
Expand All @@ -41,7 +41,7 @@
from PyQt6 import QtWidgets

from not1mm.lib.ham_utility import get_logged_band
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 @@ -666,3 +666,15 @@ 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('State', '')}")


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["state"] = show_mults(self)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
14 changes: 13 additions & 1 deletion not1mm/plugins/naqp_ssb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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 @@ -529,3 +529,15 @@ 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('State', '')}")


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["state"] = show_mults(self)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
13 changes: 12 additions & 1 deletion not1mm/plugins/raem.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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 @@ -603,3 +603,14 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
25 changes: 20 additions & 5 deletions not1mm/plugins/ref_cw.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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__

Expand Down Expand Up @@ -242,11 +242,14 @@ def points(self):
return 0


def show_mults(self):
def show_mults(self, rtc=None):
"""Return display string for mults"""
return int(self.database.fetch_mult_count(1).get("count", 0)) + int(
self.database.fetch_mult_count(2).get("count", 0)
)
one = int(self.database.fetch_mult_count(1).get("count", 0))
two = int(self.database.fetch_mult_count(2).get("count", 0))
if rtc is not None:
return (two, one)

return one + two


def show_qso(self):
Expand Down Expand Up @@ -616,3 +619,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["country"], mults["state"] = show_mults(self, rtc=True)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
25 changes: 20 additions & 5 deletions not1mm/plugins/ref_ssb.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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__

Expand Down Expand Up @@ -257,11 +257,14 @@ def points(self):
return 0


def show_mults(self):
def show_mults(self, rtc=None):
"""Return display string for mults"""
return int(self.database.fetch_mult_count(1).get("count", 0)) + int(
self.database.fetch_mult_count(2).get("count", 0)
)
one = int(self.database.fetch_mult_count(1).get("count", 0))
two = int(self.database.fetch_mult_count(2).get("count", 0))
if rtc is not None:
return (two, one)

return one + two


def show_qso(self):
Expand Down Expand Up @@ -631,3 +634,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
"""Get mults for RTC XML"""
mults = {}
mults["country"], mults["state"] = show_mults(self, rtc=True)
return mults


def just_points(self):
"""Get points for RTC XML"""
return get_points(self)
13 changes: 12 additions & 1 deletion not1mm/plugins/stew_perry_topband.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

from pathlib import Path
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__
from not1mm.lib.ham_utility import distance

Expand Down Expand Up @@ -472,3 +472,14 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
self.save_contact()
continue
self.process_function_key(button)


def get_mults(self):
""""""
mults = {}
return mults


def just_points(self):
""""""
return get_points(self)
16 changes: 14 additions & 2 deletions not1mm/plugins/winter_field_day.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

from pathlib import Path
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__)

EXCHANGE_HINT = "1O ORG"

cabrillo_name = "WFD"
cabrillo_name = "WFDA-CONTEST"
name = "Winter Field Day"
# 1 once per contest, 2 work each band, 3 each band/mode, 4 no dupe checking
mode = "BOTH" # CW SSB BOTH RTTY
Expand Down Expand Up @@ -467,3 +467,15 @@ def check_call_history(self):
self.other_1.setText(f"{result.get('Exch1', '')}")
if self.other_2.text() == "":
self.other_2.setText(f"{result.get('Sect', '')}")


def get_mults(self):
""""""
mults = {}
mults["wpxprefix"] = show_mults(self)
return mults


def just_points(self):
""""""
return get_points(self)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "not1mm"
version = "24.12.8.2"
version = "24.12.9"
description = "NOT1MM Logger"
readme = "README.md"
requires-python = ">=3.9"
Expand Down

0 comments on commit 2ae88e4

Please sign in to comment.