not1mm 24.12.8.2__py3-none-any.whl → 24.12.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "24.12.8.2"
3
+ __version__ = "24.12.11"
@@ -46,7 +46,7 @@ from pathlib import Path
46
46
 
47
47
  from PyQt6 import QtWidgets
48
48
 
49
- from not1mm.lib.plugin_common import gen_adif, get_points
49
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
50
50
  from not1mm.lib.version import __version__
51
51
 
52
52
  logger = logging.getLogger(__name__)
@@ -547,3 +547,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
547
547
  self.save_contact()
548
548
  continue
549
549
  self.process_function_key(button)
550
+
551
+
552
+ def get_mults(self):
553
+ """Get mults for RTC XML"""
554
+ mults = {}
555
+ mults["wpxprefix"] = show_mults(self)
556
+ return mults
557
+
558
+
559
+ def just_points(self):
560
+ """Get points for RTC XML"""
561
+ return get_points(self)
@@ -46,7 +46,7 @@ from pathlib import Path
46
46
  from PyQt6 import QtWidgets
47
47
 
48
48
  from not1mm.lib.ham_utility import get_logged_band
49
- from not1mm.lib.plugin_common import gen_adif, get_points
49
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
50
50
  from not1mm.lib.version import __version__
51
51
 
52
52
  logger = logging.getLogger(__name__)
@@ -628,3 +628,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
628
628
  continue
629
629
  sendstring = f"{sendstring}{self.process_macro(button.toolTip())} "
630
630
  self.fldigi_util.send_string(sendstring)
631
+
632
+
633
+ def get_mults(self):
634
+ """Get mults for RTC XML"""
635
+ mults = {}
636
+ mults["wpxprefix"] = show_mults(self)
637
+ return mults
638
+
639
+
640
+ def just_points(self):
641
+ """Get points for RTC XML"""
642
+ return get_points(self)
@@ -9,7 +9,7 @@ from pathlib import Path
9
9
 
10
10
  from PyQt6 import QtWidgets
11
11
 
12
- from not1mm.lib.plugin_common import gen_adif, get_points
12
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
13
13
  from not1mm.lib.version import __version__
14
14
 
15
15
  logger = logging.getLogger(__name__)
@@ -508,3 +508,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
508
508
  self.save_contact()
509
509
  continue
510
510
  self.process_function_key(button)
511
+
512
+
513
+ def get_mults(self):
514
+ """Get mults for RTC XML"""
515
+ mults = {}
516
+ mults["wpxprefix"] = show_mults(self)
517
+ return mults
518
+
519
+
520
+ def just_points(self):
521
+ """Get points for RTC XML"""
522
+ return get_points(self)
@@ -177,26 +177,19 @@ def points(self):
177
177
  return 0
178
178
 
179
179
 
180
- def get_mults(self):
181
- """"""
182
- mults = {}
183
- mults["zone"] = self.database.fetch_zn_band_count().get("zb_count", 0)
184
- mults["country"] = self.database.fetch_country_band_count().get("cb_count", 0)
185
- return mults
186
-
187
-
188
- def just_points(self):
189
- """"""
190
- return self.database.fetch_points().get("Points", "0")
191
-
192
-
193
- def show_mults(self):
180
+ def show_mults(self, rtc=None):
194
181
  """Return display string for mults"""
182
+ _zone = 0
183
+ _country = 0
195
184
  result1 = self.database.fetch_zn_band_count()
196
185
  result2 = self.database.fetch_country_band_count()
197
- if result1 and result2:
198
- return int(result1.get("zb_count", 0)) + int(result2.get("cb_count", 0))
199
- return 0
186
+ if result1:
187
+ _zone = int(result1.get("zb_count", 0))
188
+ if result2:
189
+ _country = int(result2.get("cb_count", 0))
190
+ if rtc is not None:
191
+ return (_country, _zone)
192
+ return _country + _zone
200
193
 
201
194
 
202
195
  def show_qso(self):
@@ -551,3 +544,15 @@ def check_call_history(self):
551
544
  self.history_info.setText(f"{result.get('UserText','')}")
552
545
  if self.other_2.text() == "":
553
546
  self.other_2.setText(f"{result.get('CQZone', '')}")
547
+
548
+
549
+ def get_mults(self):
550
+ """Get mults for RTC XML"""
551
+ mults = {}
552
+ mults["country"], mults["zone"] = show_mults(self, rtc=True)
553
+ return mults
554
+
555
+
556
+ def just_points(self):
557
+ """Get points for RTC XML"""
558
+ return get_points(self)
@@ -46,7 +46,7 @@ from pathlib import Path
46
46
  from PyQt6 import QtWidgets
47
47
 
48
48
  from not1mm.lib.ham_utility import get_logged_band
49
- from not1mm.lib.plugin_common import gen_adif, get_points
49
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
50
50
  from not1mm.lib.version import __version__
51
51
 
52
52
  logger = logging.getLogger(__name__)
@@ -169,24 +169,30 @@ def points(self):
169
169
  return 0
170
170
 
171
171
 
172
- def show_mults(self):
172
+ def show_mults(self, rtc=None):
173
173
  """Return display string for mults"""
174
174
 
175
175
  # Multipliers: W/VE Stations: Each US state/VE area once per band
176
176
  # Each DXCC/WAE country once per band
177
177
  # Each CQ zone once per band
178
178
 
179
+ _zone, _country, _spc_count = 0, 0, 0
179
180
  result1 = self.database.fetch_zn_band_count()
180
181
  result2 = self.database.fetch_country_band_count()
181
182
  res3_query = f"select count(DISTINCT(Exchange1 || ':' || Band)) as spc_count from dxlog where ContestNR = {self.database.current_contest};"
182
183
  result3 = self.database.exec_sql(res3_query)
183
- if result1 and result2 and result3:
184
- return (
185
- int(result1.get("zb_count", 0))
186
- + int(result2.get("cb_count", 0))
187
- + int(result3.get("spc_count", 0))
188
- )
189
- return 0
184
+
185
+ if result1:
186
+ _zone = int(result1.get("zb_count", 0))
187
+ if result2:
188
+ _country = int(result2.get("cb_count", 0))
189
+ if result3:
190
+ _spc_count = int(result3.get("spc_count", 0))
191
+
192
+ if rtc is not None:
193
+ return (_country + _spc_count, _zone)
194
+
195
+ return _country + _spc_count + _zone
190
196
 
191
197
 
192
198
  def show_qso(self):
@@ -647,3 +653,15 @@ def check_call_history(self):
647
653
  self.other_1.setText(f"{result.get('CQZone', '')}")
648
654
  if self.other_2.text() == "":
649
655
  self.other_2.setText(f"{result.get('State', '')}")
656
+
657
+
658
+ def get_mults(self):
659
+ """Get mults for RTC XML"""
660
+ mults = {}
661
+ mults["country"], mults["zone"] = show_mults(self, rtc=True)
662
+ return mults
663
+
664
+
665
+ def just_points(self):
666
+ """Get points for RTC XML"""
667
+ return get_points(self)
@@ -43,7 +43,7 @@ from pathlib import Path
43
43
 
44
44
  from PyQt6 import QtWidgets
45
45
 
46
- from not1mm.lib.plugin_common import gen_adif, get_points
46
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
47
47
  from not1mm.lib.version import __version__
48
48
 
49
49
  logger = logging.getLogger(__name__)
@@ -167,13 +167,19 @@ def points(self):
167
167
  return 0
168
168
 
169
169
 
170
- def show_mults(self):
170
+ def show_mults(self, rtc=None):
171
171
  """Return display string for mults"""
172
+ _zone = 0
173
+ _country = 0
172
174
  result1 = self.database.fetch_zn_band_count()
173
175
  result2 = self.database.fetch_country_band_count()
174
- if result1 and result2:
175
- return int(result1.get("zb_count", 0)) + int(result2.get("cb_count", 0))
176
- return 0
176
+ if result1:
177
+ _zone = int(result1.get("zb_count", 0))
178
+ if result2:
179
+ _country = int(result2.get("cb_count", 0))
180
+ if rtc is not None:
181
+ return (_country, _zone)
182
+ return _country + _zone
177
183
 
178
184
 
179
185
  def show_qso(self):
@@ -525,3 +531,15 @@ def check_call_history(self):
525
531
  self.history_info.setText(f"{result.get('UserText','')}")
526
532
  if self.other_2.text() == "":
527
533
  self.other_2.setText(f"{result.get('CQZone', '')}")
534
+
535
+
536
+ def get_mults(self):
537
+ """Get mults for RTC XML"""
538
+ mults = {}
539
+ mults["country"], mults["zone"] = show_mults(self, rtc=True)
540
+ return mults
541
+
542
+
543
+ def just_points(self):
544
+ """Get points for RTC XML"""
545
+ return get_points(self)
@@ -32,7 +32,7 @@ from pathlib import Path
32
32
 
33
33
  from PyQt6 import QtWidgets
34
34
 
35
- from not1mm.lib.plugin_common import gen_adif, get_points
35
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
36
36
  from not1mm.lib.version import __version__
37
37
 
38
38
  logger = logging.getLogger(__name__)
@@ -176,11 +176,14 @@ def points(self):
176
176
  return 1
177
177
 
178
178
 
179
- def show_mults(self):
179
+ def show_mults(self, rtc=None):
180
180
  """Return display string for mults"""
181
- return int(self.database.fetch_mult_count(1).get("count", 0)) + int(
182
- self.database.fetch_mult_count(2).get("count", 0)
183
- )
181
+ _wpx = int(self.database.fetch_mult_count(1).get("count", 0))
182
+ _dok = int(self.database.fetch_mult_count(2).get("count", 0))
183
+ if rtc is not None:
184
+ return (_dok, _wpx)
185
+
186
+ return _wpx + _dok
184
187
 
185
188
 
186
189
  def show_qso(self):
@@ -561,3 +564,15 @@ def check_call_history(self):
561
564
  self.history_info.setText(f"{result.get('UserText','')}")
562
565
  if self.other_1.text() == "":
563
566
  self.other_1.setText(f"{result.get('Exch1', '')}")
567
+
568
+
569
+ def get_mults(self):
570
+ """Get mults for RTC XML"""
571
+ mults = {}
572
+ mults["state"], mults["wpxprefix"] = show_mults(self, rtc=True)
573
+ return mults
574
+
575
+
576
+ def just_points(self):
577
+ """Get points for RTC XML"""
578
+ return get_points(self)
@@ -237,11 +237,14 @@ def points(self):
237
237
  return 0
238
238
 
239
239
 
240
- def show_mults(self):
240
+ def show_mults(self, rtc=None):
241
241
  """Return display string for mults"""
242
- return int(self.database.fetch_mult_count(1).get("count", 0)) + int(
243
- self.database.fetch_mult_count(2).get("count", 0)
244
- )
242
+ one = int(self.database.fetch_mult_count(1).get("count", 0))
243
+ two = int(self.database.fetch_mult_count(2).get("count", 0))
244
+ if rtc is not None:
245
+ return (two, one)
246
+
247
+ return one + two
245
248
 
246
249
 
247
250
  def show_qso(self):
@@ -625,3 +628,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
625
628
  self.save_contact()
626
629
  continue
627
630
  self.process_function_key(button)
631
+
632
+
633
+ def get_mults(self):
634
+ """Get mults for RTC XML"""
635
+ mults = {}
636
+ mults["country"], mults["state"] = show_mults(self, rtc=True)
637
+ return mults
638
+
639
+
640
+ def just_points(self):
641
+ """Get points for RTC XML"""
642
+ return get_points(self)
@@ -39,7 +39,7 @@ from pathlib import Path
39
39
 
40
40
  from PyQt6 import QtWidgets
41
41
 
42
- from not1mm.lib.plugin_common import gen_adif, get_points
42
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
43
43
  from not1mm.lib.version import __version__
44
44
 
45
45
  logger = logging.getLogger(__name__)
@@ -47,7 +47,7 @@ logger = logging.getLogger(__name__)
47
47
  EXCHANGE_HINT = "#"
48
48
 
49
49
  name = "IARU FIELDDAY R1 DARC CW"
50
- cabrillo_name = "IARU-FD-R1-DARC-CW"
50
+ cabrillo_name = "FIELDDAY-REGION-1"
51
51
  mode = "CW" # CW SSB BOTH RTTY
52
52
  # columns = [0, 1, 2, 3, 4, 5, 6, 9, 11, 15]
53
53
  columns = [
@@ -527,3 +527,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
527
527
  self.save_contact()
528
528
  continue
529
529
  self.process_function_key(button)
530
+
531
+
532
+ def get_mults(self):
533
+ """Get mults for RTC XML"""
534
+ mults = {}
535
+ mults["country"] = show_mults(self)
536
+ return mults
537
+
538
+
539
+ def just_points(self):
540
+ """Get points for RTC XML"""
541
+ return get_points(self)
@@ -39,7 +39,7 @@ from pathlib import Path
39
39
 
40
40
  from PyQt6 import QtWidgets
41
41
 
42
- from not1mm.lib.plugin_common import gen_adif, get_points
42
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
43
43
  from not1mm.lib.version import __version__
44
44
 
45
45
  logger = logging.getLogger(__name__)
@@ -47,7 +47,7 @@ logger = logging.getLogger(__name__)
47
47
  EXCHANGE_HINT = "#"
48
48
 
49
49
  name = "IARU FIELDDAY R1 DARC SSB"
50
- cabrillo_name = "IARU-FD-R1-DARC-SSB"
50
+ cabrillo_name = "FIELDDAY-REGION-1"
51
51
  mode = "SSB" # CW SSB BOTH RTTY
52
52
  # columns = [0, 1, 2, 3, 4, 5, 6, 9, 11, 15]
53
53
  columns = [
@@ -527,3 +527,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
527
527
  self.save_contact()
528
528
  continue
529
529
  self.process_function_key(button)
530
+
531
+
532
+ def get_mults(self):
533
+ """Get mults for RTC XML"""
534
+ mults = {}
535
+ mults["country"] = show_mults(self)
536
+ return mults
537
+
538
+
539
+ def just_points(self):
540
+ """Get points for RTC XML"""
541
+ return get_points(self)
not1mm/plugins/iaru_hf.py CHANGED
@@ -22,7 +22,7 @@ from pathlib import Path
22
22
 
23
23
  from PyQt6 import QtWidgets
24
24
 
25
- from not1mm.lib.plugin_common import gen_adif, get_points
25
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
26
26
  from not1mm.lib.version import __version__
27
27
 
28
28
  logger = logging.getLogger(__name__)
@@ -143,12 +143,28 @@ def points(self):
143
143
  return 5
144
144
 
145
145
 
146
- def show_mults(self):
146
+ def show_mults(self, rtc=None):
147
147
  """Return display string for mults"""
148
+ # select count(DISTINCT(ZN || ':' || Band || ':' || Mode)) as zbm_count from dxlog where ContestNR = 14 and typeof(ZN)!="integer";
149
+ total_mults = 0
148
150
  result1 = self.database.fetch_zn_band_mode_count()
149
151
  if result1:
150
- return int(result1.get("zbm_count", 0))
151
- return 0
152
+ total_mults = int(result1.get("zbm_count", 0))
153
+
154
+ query = (
155
+ f"select count(DISTINCT(ZN || ':' || Band || ':' || Mode)) "
156
+ f"as zbm_count from dxlog where ContestNR = {self.pref.get('contest', '1')} "
157
+ f"and typeof(ZN)!='integer';"
158
+ )
159
+ result = self.database.exec_sql(query)
160
+ hq_count = int(result.get("zbm_count", 0))
161
+
162
+ zones = total_mults - hq_count
163
+
164
+ if rtc is not None:
165
+ return (hq_count, zones)
166
+
167
+ return total_mults
152
168
 
153
169
 
154
170
  def show_qso(self):
@@ -479,7 +495,7 @@ def populate_history_info_line(self):
479
495
  result = self.database.fetch_call_history(self.callsign.text())
480
496
  if result:
481
497
  self.history_info.setText(
482
- f"{result.get('Call', '')}, {result.get('Exch1', '')}, {result.get('UserText','...')}"
498
+ f"{result.get('Call', '')}, {result.get('Sect', '')}, {result.get('UserText','...')}"
483
499
  )
484
500
  else:
485
501
  self.history_info.setText("")
@@ -491,4 +507,17 @@ def check_call_history(self):
491
507
  if result:
492
508
  self.history_info.setText(f"{result.get('UserText','')}")
493
509
  if self.other_2.text() == "":
494
- self.other_2.setText(f"{result.get('Exch1', '')}")
510
+ self.other_2.setText(f"{result.get('Sect', '')}")
511
+
512
+
513
+ def get_mults(self):
514
+ """Get mults for RTC XML"""
515
+
516
+ mults = {}
517
+ mults["state"], mults["zone"] = show_mults(self, rtc=True)
518
+ return mults
519
+
520
+
521
+ def just_points(self):
522
+ """Get points for RTC XML"""
523
+ return get_points(self)
not1mm/plugins/jidx_cw.py CHANGED
@@ -38,7 +38,7 @@ from pathlib import Path
38
38
 
39
39
  from PyQt6 import QtWidgets
40
40
 
41
- from not1mm.lib.plugin_common import gen_adif, get_points
41
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
42
42
  from not1mm.lib.version import __version__
43
43
 
44
44
  logger = logging.getLogger(__name__)
@@ -488,3 +488,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
488
488
  self.save_contact()
489
489
  continue
490
490
  self.process_function_key(button)
491
+
492
+
493
+ def get_mults(self):
494
+ """Get mults for RTC XML"""
495
+ mults = {}
496
+ mults["country"] = show_mults(self)
497
+ return mults
498
+
499
+
500
+ def just_points(self):
501
+ """Get points for RTC XML"""
502
+ return get_points(self)
not1mm/plugins/jidx_ph.py CHANGED
@@ -9,7 +9,7 @@ from pathlib import Path
9
9
 
10
10
  from PyQt6 import QtWidgets
11
11
 
12
- from not1mm.lib.plugin_common import gen_adif, get_points
12
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
13
13
  from not1mm.lib.version import __version__
14
14
 
15
15
  logger = logging.getLogger(__name__)
@@ -457,3 +457,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
457
457
  self.save_contact()
458
458
  continue
459
459
  self.process_function_key(button)
460
+
461
+
462
+ def get_mults(self):
463
+ """Get mults for RTC XML"""
464
+ mults = {}
465
+ mults["country"] = show_mults(self)
466
+ return mults
467
+
468
+
469
+ def just_points(self):
470
+ """Get points for RTC XML"""
471
+ return get_points(self)
not1mm/plugins/lz-dx.py CHANGED
@@ -40,7 +40,7 @@ from pathlib import Path
40
40
 
41
41
  from PyQt6 import QtWidgets
42
42
 
43
- from not1mm.lib.plugin_common import gen_adif, get_points
43
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
44
44
 
45
45
  from not1mm.lib.version import __version__
46
46
 
@@ -624,3 +624,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
624
624
  self.save_contact()
625
625
  continue
626
626
  self.process_function_key(button)
627
+
628
+
629
+ def get_mults(self):
630
+ """Get mults for RTC XML"""
631
+ mults = {}
632
+ mults["state"] = show_mults(self)
633
+ return mults
634
+
635
+
636
+ def just_points(self):
637
+ """Get points for RTC XML"""
638
+ return get_points(self)
not1mm/plugins/naqp_cw.py CHANGED
@@ -40,7 +40,7 @@ from pathlib import Path
40
40
 
41
41
  from PyQt6 import QtWidgets
42
42
 
43
- from not1mm.lib.plugin_common import gen_adif, get_points
43
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
44
44
  from not1mm.lib.version import __version__
45
45
 
46
46
  logger = logging.getLogger(__name__)
@@ -559,3 +559,15 @@ def check_call_history(self):
559
559
  self.other_1.setText(f"{result.get('Name', '')}")
560
560
  if self.other_2.text() == "":
561
561
  self.other_2.setText(f"{result.get('State', '')}")
562
+
563
+
564
+ def get_mults(self):
565
+ """Get mults for RTC XML"""
566
+ mults = {}
567
+ mults["state"] = show_mults(self)
568
+ return mults
569
+
570
+
571
+ def just_points(self):
572
+ """Get points for RTC XML"""
573
+ return get_points(self)
@@ -20,11 +20,11 @@
20
20
  # Exchange: NA: Name + (state/DC/province/country)
21
21
  # non-NA: Name
22
22
  # Work stations: Once per band
23
- # QSO Points: NA station: 1 point per QSO
24
- # non-NA station: 1 point per QSO with an NA station
23
+ # QSO Points: NA station: 1 point per QSO
24
+ # non-NA station: 1 point per QSO with an NA station
25
25
  # Multipliers: Each US state and DC (including KH6/KL7) once per band
26
- # Each VE province/territory once per band
27
- # Each North American country (except W/VE) once per band
26
+ # Each VE province/territory once per band
27
+ # Each North American country (except W/VE) once per band
28
28
  # Score Calculation: Total score = total QSO points x total mults
29
29
  # E-mail logs to: (none)
30
30
  # Upload log at: http://www.ncjweb.com/naqplogsubmit/
@@ -41,7 +41,7 @@ from pathlib import Path
41
41
  from PyQt6 import QtWidgets
42
42
 
43
43
  from not1mm.lib.ham_utility import get_logged_band
44
- from not1mm.lib.plugin_common import gen_adif, get_points
44
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
45
45
  from not1mm.lib.version import __version__
46
46
 
47
47
  logger = logging.getLogger(__name__)
@@ -666,3 +666,15 @@ def check_call_history(self):
666
666
  self.other_1.setText(f"{result.get('Name', '')}")
667
667
  if self.other_2.text() == "":
668
668
  self.other_2.setText(f"{result.get('State', '')}")
669
+
670
+
671
+ def get_mults(self):
672
+ """Get mults for RTC XML"""
673
+ mults = {}
674
+ mults["state"] = show_mults(self)
675
+ return mults
676
+
677
+
678
+ def just_points(self):
679
+ """Get points for RTC XML"""
680
+ return get_points(self)
@@ -10,7 +10,7 @@ from pathlib import Path
10
10
 
11
11
  from PyQt6 import QtWidgets
12
12
 
13
- from not1mm.lib.plugin_common import gen_adif, get_points
13
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
14
14
  from not1mm.lib.version import __version__
15
15
 
16
16
  logger = logging.getLogger(__name__)
@@ -529,3 +529,15 @@ def check_call_history(self):
529
529
  self.other_1.setText(f"{result.get('Name', '')}")
530
530
  if self.other_2.text() == "":
531
531
  self.other_2.setText(f"{result.get('State', '')}")
532
+
533
+
534
+ def get_mults(self):
535
+ """Get mults for RTC XML"""
536
+ mults = {}
537
+ mults["state"] = show_mults(self)
538
+ return mults
539
+
540
+
541
+ def just_points(self):
542
+ """Get points for RTC XML"""
543
+ return get_points(self)
not1mm/plugins/raem.py CHANGED
@@ -50,7 +50,7 @@ from pathlib import Path
50
50
 
51
51
  from PyQt6 import QtWidgets
52
52
 
53
- from not1mm.lib.plugin_common import gen_adif, get_points
53
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
54
54
  from not1mm.lib.version import __version__
55
55
 
56
56
  logger = logging.getLogger(__name__)
@@ -603,3 +603,14 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
603
603
  self.save_contact()
604
604
  continue
605
605
  self.process_function_key(button)
606
+
607
+
608
+ def get_mults(self):
609
+ """Get mults for RTC XML"""
610
+ mults = {}
611
+ return mults
612
+
613
+
614
+ def just_points(self):
615
+ """Get points for RTC XML"""
616
+ return get_points(self)
not1mm/plugins/ref_cw.py CHANGED
@@ -47,7 +47,7 @@ from pathlib import Path
47
47
 
48
48
  from PyQt6 import QtWidgets
49
49
 
50
- from not1mm.lib.plugin_common import gen_adif, get_points
50
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
51
51
 
52
52
  from not1mm.lib.version import __version__
53
53
 
@@ -242,11 +242,14 @@ def points(self):
242
242
  return 0
243
243
 
244
244
 
245
- def show_mults(self):
245
+ def show_mults(self, rtc=None):
246
246
  """Return display string for mults"""
247
- return int(self.database.fetch_mult_count(1).get("count", 0)) + int(
248
- self.database.fetch_mult_count(2).get("count", 0)
249
- )
247
+ one = int(self.database.fetch_mult_count(1).get("count", 0))
248
+ two = int(self.database.fetch_mult_count(2).get("count", 0))
249
+ if rtc is not None:
250
+ return (two, one)
251
+
252
+ return one + two
250
253
 
251
254
 
252
255
  def show_qso(self):
@@ -616,3 +619,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
616
619
  self.save_contact()
617
620
  continue
618
621
  self.process_function_key(button)
622
+
623
+
624
+ def get_mults(self):
625
+ """Get mults for RTC XML"""
626
+ mults = {}
627
+ mults["country"], mults["state"] = show_mults(self, rtc=True)
628
+ return mults
629
+
630
+
631
+ def just_points(self):
632
+ """Get points for RTC XML"""
633
+ return get_points(self)
not1mm/plugins/ref_ssb.py CHANGED
@@ -62,7 +62,7 @@ from pathlib import Path
62
62
 
63
63
  from PyQt6 import QtWidgets
64
64
 
65
- from not1mm.lib.plugin_common import gen_adif, get_points
65
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
66
66
 
67
67
  from not1mm.lib.version import __version__
68
68
 
@@ -257,11 +257,14 @@ def points(self):
257
257
  return 0
258
258
 
259
259
 
260
- def show_mults(self):
260
+ def show_mults(self, rtc=None):
261
261
  """Return display string for mults"""
262
- return int(self.database.fetch_mult_count(1).get("count", 0)) + int(
263
- self.database.fetch_mult_count(2).get("count", 0)
264
- )
262
+ one = int(self.database.fetch_mult_count(1).get("count", 0))
263
+ two = int(self.database.fetch_mult_count(2).get("count", 0))
264
+ if rtc is not None:
265
+ return (two, one)
266
+
267
+ return one + two
265
268
 
266
269
 
267
270
  def show_qso(self):
@@ -631,3 +634,15 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
631
634
  self.save_contact()
632
635
  continue
633
636
  self.process_function_key(button)
637
+
638
+
639
+ def get_mults(self):
640
+ """Get mults for RTC XML"""
641
+ mults = {}
642
+ mults["country"], mults["state"] = show_mults(self, rtc=True)
643
+ return mults
644
+
645
+
646
+ def just_points(self):
647
+ """Get points for RTC XML"""
648
+ return get_points(self)
@@ -33,7 +33,7 @@ import logging
33
33
 
34
34
  from pathlib import Path
35
35
  from PyQt6 import QtWidgets
36
- from not1mm.lib.plugin_common import gen_adif, get_points
36
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
37
37
  from not1mm.lib.version import __version__
38
38
  from not1mm.lib.ham_utility import distance
39
39
 
@@ -472,3 +472,14 @@ def process_esm(self, new_focused_widget=None, with_enter=False):
472
472
  self.save_contact()
473
473
  continue
474
474
  self.process_function_key(button)
475
+
476
+
477
+ def get_mults(self):
478
+ """"""
479
+ mults = {}
480
+ return mults
481
+
482
+
483
+ def just_points(self):
484
+ """"""
485
+ return get_points(self)
@@ -21,14 +21,14 @@ import logging
21
21
 
22
22
  from pathlib import Path
23
23
  from PyQt6 import QtWidgets
24
- from not1mm.lib.plugin_common import gen_adif, get_points
24
+ from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml
25
25
  from not1mm.lib.version import __version__
26
26
 
27
27
  logger = logging.getLogger(__name__)
28
28
 
29
29
  EXCHANGE_HINT = "1O ORG"
30
30
 
31
- cabrillo_name = "WFD"
31
+ cabrillo_name = "WFDA-CONTEST"
32
32
  name = "Winter Field Day"
33
33
  # 1 once per contest, 2 work each band, 3 each band/mode, 4 no dupe checking
34
34
  mode = "BOTH" # CW SSB BOTH RTTY
@@ -467,3 +467,15 @@ def check_call_history(self):
467
467
  self.other_1.setText(f"{result.get('Exch1', '')}")
468
468
  if self.other_2.text() == "":
469
469
  self.other_2.setText(f"{result.get('Sect', '')}")
470
+
471
+
472
+ def get_mults(self):
473
+ """"""
474
+ mults = {}
475
+ mults["wpxprefix"] = show_mults(self)
476
+ return mults
477
+
478
+
479
+ def just_points(self):
480
+ """"""
481
+ return get_points(self)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.12.8.2
3
+ Version: 24.12.11
4
4
  Summary: NOT1MM Logger
5
5
  Author-email: Michael Bridak <michael.bridak@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mbridak/not1mm
@@ -239,6 +239,8 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
239
239
 
240
240
  ## Recent Changes (Polishing the Turd)
241
241
 
242
+ - [24-12-11] Add RTC to IARU HF, IARU Field Day, DARC XMAS, CQ WW, CQ WPX
243
+ - [24-12-9] Add RTC to Winter Field Day, Stew Perry, REF, RAEM, NAQP, LZ-DX, JIDX
242
244
  - [24-12-8-2] Add RTC to ARRL 10M, Tweaked cabrillo file output.
243
245
  - [24-12-8-1] Changed cabrillo names for Weekly RTTY, CW Ops CWT and K1USN SST.
244
246
  - [24-12-8] Fix: Weekly RTTY mults. Add RTC to Weekly RTTY.
@@ -115,7 +115,7 @@ not1mm/lib/plugin_common.py,sha256=-cvXtEAUgZ7GtxaNiwVdHbZ-7wEBeoMPRZXNdCxnPyA,1
115
115
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
116
116
  not1mm/lib/settings.py,sha256=j5lIMLHJ-eqIaVr_QhI82gkbOl17_C-5suRkWbHYET8,14717
117
117
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
118
- not1mm/lib/version.py,sha256=dGZ362Sujlt5tGiZfEJuuxkBFn47c3rEzirYRmHScbE,50
118
+ not1mm/lib/version.py,sha256=3-lshkWE_9LGtCJjg8Tr3nA4z_n1a8WtWbuc4JtoOb8,49
119
119
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
120
120
  not1mm/plugins/10_10_fall_cw.py,sha256=YDuAd9wb0XIVl1jWn4foBRWoPc7YfaWcEnl8EYsZtdI,14578
121
121
  not1mm/plugins/10_10_spring_cw.py,sha256=Dqhd3dcSJk-H1cNayLfjJbstzWePt86iFY9BrpW6gnU,14583
@@ -136,37 +136,37 @@ not1mm/plugins/arrl_vhf_sep.py,sha256=SgILjeGZ4Z6_lz5Bq2uov0kntBbqf57FoIl7dyaFN9
136
136
  not1mm/plugins/canada_day.py,sha256=C29L8PWYjXwuQmuh-bkN32eeoex6h5DsWWWpgmntQyo,15354
137
137
  not1mm/plugins/cq_160_cw.py,sha256=Ks41--f-p46rpDeOlzJmLgg7Coj0nyVLuTNWFr7eVHw,18664
138
138
  not1mm/plugins/cq_160_ssb.py,sha256=NqPO9EJzuvjLcacvUn-NJUoeWBUL9lSHYZ-N3Vyfjxk,18707
139
- not1mm/plugins/cq_wpx_cw.py,sha256=n3X0lNjQKm0fSyBTRS-d8s0_7ccZ3wMUBSNCWWOVMrk,17952
140
- not1mm/plugins/cq_wpx_rtty.py,sha256=2x5qp8ThxkLlbaT3ItYfqK2cWl0FWB27Q80U4oZRsvA,20771
141
- not1mm/plugins/cq_wpx_ssb.py,sha256=lZdQgCX_DWDhEpWJ643XUAkntKK6Bv67DOdNyoSNgig,16519
142
- not1mm/plugins/cq_ww_cw.py,sha256=-z-UNzHrjpdCbsqLmivinHQalrE3SFLGIKX4rOSijJo,18339
143
- not1mm/plugins/cq_ww_rtty.py,sha256=pKIvigbbDwSd9QxRsVmGcfE5Wyy1in9lXjVD-8Ikpgo,22080
144
- not1mm/plugins/cq_ww_ssb.py,sha256=3IFCJLc9YNRSaSHazE92V9Ds_tiE-0td1sXIWk90I8k,17600
139
+ not1mm/plugins/cq_wpx_cw.py,sha256=7ZWO9iqNVKjCZXG_5bUEtpahTgRHLc7ebQhvsQTATh0,18185
140
+ not1mm/plugins/cq_wpx_rtty.py,sha256=2QoZzGg01wMIPRLxVUmS-Pke0iJvakr_prBzPnekHpc,21004
141
+ not1mm/plugins/cq_wpx_ssb.py,sha256=WeUQoXbGDxzg603Ai6vmtw-Lc9LVXwwreamqXu--unY,16752
142
+ not1mm/plugins/cq_ww_cw.py,sha256=qWtKnzrm5Ifi7VxExFWidyX1aEGid5I1XExYXsWEGs0,18393
143
+ not1mm/plugins/cq_ww_rtty.py,sha256=RJywVSNujM4CxxTRCGKXhjmbz6OMzGR5eHSAmQcT6Pc,22486
144
+ not1mm/plugins/cq_ww_ssb.py,sha256=uRMXaTfkIt7QJxQBaBAvc2fmT6ak26SzBBezd5k_hMc,17991
145
145
  not1mm/plugins/cwt.py,sha256=7BoKVrIywlHpP4f4_mrUyWKVsK6vujreb8jDWyXrwUc,17530
146
- not1mm/plugins/darc_xmas.py,sha256=SYP35XbR-zyyLmmGb_xCqeNJRqtiuNAja7ufmipt7Ls,18567
146
+ not1mm/plugins/darc_xmas.py,sha256=p9JbOJlEoOsB86E5ciHdrY7L-10tnNEWuTxq9EfCNBM,18907
147
147
  not1mm/plugins/general_logging.py,sha256=NV_FCgpAEEQrVRxMDD7nQ2krJgPrhtopizxrGndtUNk,6686
148
- not1mm/plugins/helvetia.py,sha256=819tSh-NAFDqdT6tWlWmH7qAp2OpQVbz6RSS_iPqpv0,19718
149
- not1mm/plugins/iaru_fieldday_r1_cw.py,sha256=0nSdjaGi3z0QbhapClkUHAQ3ahVCAovW3jkSCwRpxds,16925
150
- not1mm/plugins/iaru_fieldday_r1_ssb.py,sha256=cKgwNAQqaY57oIvSVOVEA7dibdEPDKQS0ZelJxCGaBI,16930
151
- not1mm/plugins/iaru_hf.py,sha256=wqlqKMPO0e3HNgbxbQWpckdFkaZ2e9pD3f5NDMZirCU,15824
148
+ not1mm/plugins/helvetia.py,sha256=CnAq0mXZC2tO_pEwIoDN6MHAv95NPcLRvG1gnjfAcF8,20032
149
+ not1mm/plugins/iaru_fieldday_r1_cw.py,sha256=lueTnK50yRSMqASlktrhuFOJkSBDsQw4OyT9eYwpugU,17155
150
+ not1mm/plugins/iaru_fieldday_r1_ssb.py,sha256=1lYxeo4j_piiFZ_db-vHIHT5c1jSeFPBuw6yf1kur6Y,17159
151
+ not1mm/plugins/iaru_hf.py,sha256=kbiKqg7leyGnULe4BEk0gaZ4uvqR2ya9MOe_Er4mN8U,16658
152
152
  not1mm/plugins/icwc_mst.py,sha256=XfaIRIj0BxWvpWk2nmy_dMseVuKVOh-_m3UcIGOy6wI,16475
153
- not1mm/plugins/jidx_cw.py,sha256=KJOE3fU0KVMqD5IqvnN3YDHPEwrMx3yJZBmCtAIP7WQ,15650
154
- not1mm/plugins/jidx_ph.py,sha256=1l92EmDZJFRGZjR1VrISgFc8KoHVfmJvLsaVsuufIMs,14599
153
+ not1mm/plugins/jidx_cw.py,sha256=gSScw21ac2Rpdd7jspgh5gnH9JdiR8h3YOa-41B_T94,15881
154
+ not1mm/plugins/jidx_ph.py,sha256=0E5xHs0WXh-x2Z6UC2PGqmLdIkn-jWbENOeLopr7rys,14830
155
155
  not1mm/plugins/k1usn_sst.py,sha256=X9shd8_nLVLaoEonBDfgFfbaWDXcpz9pCmg6nNuQSi0,17151
156
- not1mm/plugins/lz-dx.py,sha256=lXR0n_4-tfHXlLZtyAY44gedIvF_ZUw5dFgoU5fHuME,19614
157
- not1mm/plugins/naqp_cw.py,sha256=vm4PsGYZA1TEYZlwtY4Ab0bjRGZxdP9SBf5jicGmAJM,18685
158
- not1mm/plugins/naqp_rtty.py,sha256=7H8zQklTMZ5eIAbH3MsdJfRzxCmHlyVtQskgtd8gTzM,22369
159
- not1mm/plugins/naqp_ssb.py,sha256=2F4mV9hBmTtyTa58QJzXkyJ6T9oqDBziOi_eqPezUXM,17602
156
+ not1mm/plugins/lz-dx.py,sha256=w7YNerI1QAGkL_QffOosKvLcqjdWgEHhDd3ZInANcFU,19843
157
+ not1mm/plugins/naqp_cw.py,sha256=7Q5m8cv1mdFilXn2NFU3Uqc4rSW3Di1r_1_jBceYoOA,18914
158
+ not1mm/plugins/naqp_rtty.py,sha256=AzzMutcczXH7wTQVRLF7DxEo3HKq6IZWSFf3Lpy9UBM,22656
159
+ not1mm/plugins/naqp_ssb.py,sha256=C8aAvICTTXyOuvp4fqlr0tQYtmCX-mNSwUZJs-N_pNE,17831
160
160
  not1mm/plugins/phone_weekly_test.py,sha256=xocHg61tZ5nL5n9zYzKS8ibrfwmQYa2nnEjWEgVvKdw,16325
161
- not1mm/plugins/raem.py,sha256=DROvGpFI89eCekcQUhpbFaEZIFGolYtJqqYvq_DA2cs,19371
162
- not1mm/plugins/ref_cw.py,sha256=eslrY8Wxz2s2xmeG7ekGIE71TJlCXb7spNrLHEhNSjY,20396
163
- not1mm/plugins/ref_ssb.py,sha256=YMdYth8dLmP8UsdTfZLNIQ4q06aBBiEBgD4GFiRcKgw,20607
164
- not1mm/plugins/stew_perry_topband.py,sha256=bZb9m6XiwAcClPC8L4pyvcw07QZgBcpZ1fyAcYWzB5A,15193
161
+ not1mm/plugins/raem.py,sha256=yF4WK-T8aPDxSI3pxVwYW-Q7eW9n5gvuaslEBoTYcsI,19562
162
+ not1mm/plugins/ref_cw.py,sha256=sj69Jjtm1gA9juQTRVSe3BdcCqcQXMaJMD5D1kr5QOs,20728
163
+ not1mm/plugins/ref_ssb.py,sha256=vfS9-mcnbw2znRvU4jh20JqI9BXap8jV65OV5mbCkCk,20939
164
+ not1mm/plugins/stew_perry_topband.py,sha256=D1hekmMbx-i4BhaP2uzOK3OzaVVMMdgcN3RmfweNqHo,15341
165
165
  not1mm/plugins/weekly_rtty.py,sha256=huZszbZsIh4vF3cP80UyPzy3qxIoHdEiT1b6KuvwgYc,20083
166
- not1mm/plugins/winter_field_day.py,sha256=BA-Y86RqF66XngUXWo8sSNWrrrLucy-HGGT04BUMVJ8,14950
167
- not1mm-24.12.8.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
168
- not1mm-24.12.8.2.dist-info/METADATA,sha256=AWLEMaK_FKZYJFu9JykiqjOb8987KWonBa1g69MBoj8,35860
169
- not1mm-24.12.8.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
170
- not1mm-24.12.8.2.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
171
- not1mm-24.12.8.2.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
172
- not1mm-24.12.8.2.dist-info/RECORD,,
166
+ not1mm/plugins/winter_field_day.py,sha256=cSCFwy1LOoDDA9Zs1LHRG3r8spDMSKDisxyPxnVrLjw,15149
167
+ not1mm-24.12.11.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
168
+ not1mm-24.12.11.dist-info/METADATA,sha256=09B7dIv-mcQaez4TWsq8thv9ZJKmlFMOkXQM0V4vRFo,36015
169
+ not1mm-24.12.11.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
170
+ not1mm-24.12.11.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
171
+ not1mm-24.12.11.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
172
+ not1mm-24.12.11.dist-info/RECORD,,