Skip to content

Commit c23e214

Browse files
committed
Merge branch 'master' of https://github.com/mbridak/not1mm
2 parents b7a2e51 + f41dbe3 commit c23e214

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

not1mm/plugins/darc_xmas.py

+16-11
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def init_contest(self):
6767
set_tab_next(self)
6868
set_tab_prev(self)
6969
interface(self)
70-
self.next_field = self.other_1
70+
self.next_field = self.other_2
7171

7272

7373
def interface(self):
@@ -96,7 +96,10 @@ def set_tab_next(self):
9696
self.field1.findChild(QtWidgets.QLineEdit): self.field2.findChild(
9797
QtWidgets.QLineEdit
9898
),
99-
self.field2.findChild(QtWidgets.QLineEdit): self.field4.findChild(
99+
self.field2.findChild(QtWidgets.QLineEdit): self.field3.findChild(
100+
QtWidgets.QLineEdit
101+
),
102+
self.field3.findChild(QtWidgets.QLineEdit): self.field4.findChild(
100103
QtWidgets.QLineEdit
101104
),
102105
self.field4.findChild(QtWidgets.QLineEdit): self.callsign,
@@ -111,7 +114,10 @@ def set_tab_prev(self):
111114
self.field2.findChild(QtWidgets.QLineEdit): self.field1.findChild(
112115
QtWidgets.QLineEdit
113116
),
114-
self.field4.findChild(QtWidgets.QLineEdit): self.field2.findChild(
117+
self.field3.findChild(QtWidgets.QLineEdit): self.field2.findChild(
118+
QtWidgets.QLineEdit
119+
),
120+
self.field4.findChild(QtWidgets.QLineEdit): self.field3.findChild(
115121
QtWidgets.QLineEdit
116122
),
117123
}
@@ -123,9 +129,9 @@ def set_contact_vars(self):
123129
self.contact["RCV"] = self.receive.text()
124130
self.contact["NR"] = self.other_2.text().upper()
125131
self.contact["SentNr"] = self.other_1.text()
126-
#self.contact["SentNr"] = self.contest_settings.get("SentExchange", "").upper()
132+
# self.contact["SentNr"] = self.contest_settings.get("SentExchange", "").upper()
127133
dok = self.contact["NR"]
128-
134+
129135
dxcc = self.contact.get("CountryPrefix", "")
130136
band = self.contact.get("Band", "")
131137

@@ -142,7 +148,7 @@ def set_contact_vars(self):
142148
self.contact["IsMultiplier2"] = 1
143149
else:
144150
self.contact["IsMultiplier2"] = 0
145-
151+
146152
if self.contact.get("WPXPrefix", ""):
147153
result = self.database.fetch_wpx_exists(self.contact.get("WPXPrefix", ""))
148154
if result.get("wpx_count", ""):
@@ -169,16 +175,16 @@ def prefill(self):
169175
field.setText(serial_nr)
170176
else:
171177
field.setText(sent_sxchange_setting)
172-
178+
173179
if self.other_2.text() == "":
174180
call = self.callsign.text().upper()
175181
query = f"select NR from dxlog where Call = '{call}' and ContestName = 'XMAS' order by ts desc;"
176182
logger.debug(query)
177183
result = self.database.exec_sql(query)
178184
logger.debug("%s", f"{result}")
179185
if result:
180-
if isinstance(result.get("NR", ""), str):
181-
self.other_2.setText(str(result.get("NR", "")))
186+
if isinstance(result.get("NR", ""), str):
187+
self.other_2.setText(str(result.get("NR", "")))
182188

183189

184190
def points(self):
@@ -216,7 +222,7 @@ def calc_score(self):
216222

217223
def adif(self):
218224
"""Call the generate ADIF function"""
219-
gen_adif(self, cabrillo_name, "CWOPS-CWT")
225+
gen_adif(self, cabrillo_name, "XMAS")
220226

221227

222228
def output_cabrillo_line(line_to_output, ending, file_descriptor, file_encoding):
@@ -454,7 +460,6 @@ def recalculate_mults(self):
454460
else:
455461
contact["IsMultiplier2"] = 0
456462
self.database.change_contact(contact)
457-
458463

459464

460465
def process_esm(self, new_focused_widget=None, with_enter=False):

0 commit comments

Comments
 (0)