|
52 | 52 | from pathlib import Path |
53 | 53 | from PyQt6 import QtWidgets |
54 | 54 |
|
55 | | -from not1mm.lib.plugin_common import gen_adif, get_points |
| 55 | +from not1mm.lib.plugin_common import gen_adif, get_points, online_score_xml |
56 | 56 | from not1mm.lib.version import __version__ |
57 | 57 |
|
58 | 58 | logger = logging.getLogger(__name__) |
@@ -174,7 +174,7 @@ def points(self): |
174 | 174 | return 0 |
175 | 175 |
|
176 | 176 |
|
177 | | -def show_mults(self): |
| 177 | +def show_mults(self, rtc=None): |
178 | 178 | """Return display string for mults""" |
179 | 179 | # CountryPrefix, integer |
180 | 180 |
|
@@ -212,6 +212,9 @@ def show_mults(self): |
212 | 212 | if result: |
213 | 213 | dx = result.get("mult_count", 0) |
214 | 214 |
|
| 215 | + if rtc is not None: |
| 216 | + return dx, us_ve_mx + mm |
| 217 | + |
215 | 218 | return us_ve_mx + mm + dx |
216 | 219 |
|
217 | 220 |
|
@@ -285,7 +288,7 @@ def cabrillo(self, file_encoding): |
285 | 288 | ) |
286 | 289 | if self.station.get("Club", ""): |
287 | 290 | output_cabrillo_line( |
288 | | - f"CLUB: {self.station.get('Club', '').upper()}", |
| 291 | + f"CLUB: {self.station.get('Club', '')}", |
289 | 292 | "\r\n", |
290 | 293 | file_descriptor, |
291 | 294 | file_encoding, |
@@ -320,8 +323,11 @@ def cabrillo(self, file_encoding): |
320 | 323 | file_descriptor, |
321 | 324 | file_encoding, |
322 | 325 | ) |
| 326 | + mode = self.contest_settings.get("ModeCategory", "") |
| 327 | + if mode in ["SSB+CW", "SSB+CW+DIGITAL"]: |
| 328 | + mode = "MIXED" |
323 | 329 | output_cabrillo_line( |
324 | | - f"CATEGORY-MODE: {self.contest_settings.get('ModeCategory','')}", |
| 330 | + f"CATEGORY-MODE: {mode}", |
325 | 331 | "\r\n", |
326 | 332 | file_descriptor, |
327 | 333 | file_encoding, |
@@ -551,3 +557,15 @@ def check_call_history(self): |
551 | 557 | self.history_info.setText(f"{result.get('UserText','')}") |
552 | 558 | if self.other_2.text() == "": |
553 | 559 | self.other_2.setText(f"{result.get('State', '')}") |
| 560 | + |
| 561 | + |
| 562 | +def get_mults(self): |
| 563 | + """""" |
| 564 | + mults = {} |
| 565 | + mults["country"], mults["state"] = show_mults(self, rtc=True) |
| 566 | + return mults |
| 567 | + |
| 568 | + |
| 569 | +def just_points(self): |
| 570 | + """""" |
| 571 | + return get_points(self) |
0 commit comments