@@ -67,7 +67,7 @@ def init_contest(self):
67
67
set_tab_next (self )
68
68
set_tab_prev (self )
69
69
interface (self )
70
- self .next_field = self .other_1
70
+ self .next_field = self .other_2
71
71
72
72
73
73
def interface (self ):
@@ -96,7 +96,10 @@ def set_tab_next(self):
96
96
self .field1 .findChild (QtWidgets .QLineEdit ): self .field2 .findChild (
97
97
QtWidgets .QLineEdit
98
98
),
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 (
100
103
QtWidgets .QLineEdit
101
104
),
102
105
self .field4 .findChild (QtWidgets .QLineEdit ): self .callsign ,
@@ -111,7 +114,10 @@ def set_tab_prev(self):
111
114
self .field2 .findChild (QtWidgets .QLineEdit ): self .field1 .findChild (
112
115
QtWidgets .QLineEdit
113
116
),
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 (
115
121
QtWidgets .QLineEdit
116
122
),
117
123
}
@@ -123,9 +129,9 @@ def set_contact_vars(self):
123
129
self .contact ["RCV" ] = self .receive .text ()
124
130
self .contact ["NR" ] = self .other_2 .text ().upper ()
125
131
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()
127
133
dok = self .contact ["NR" ]
128
-
134
+
129
135
dxcc = self .contact .get ("CountryPrefix" , "" )
130
136
band = self .contact .get ("Band" , "" )
131
137
@@ -142,7 +148,7 @@ def set_contact_vars(self):
142
148
self .contact ["IsMultiplier2" ] = 1
143
149
else :
144
150
self .contact ["IsMultiplier2" ] = 0
145
-
151
+
146
152
if self .contact .get ("WPXPrefix" , "" ):
147
153
result = self .database .fetch_wpx_exists (self .contact .get ("WPXPrefix" , "" ))
148
154
if result .get ("wpx_count" , "" ):
@@ -169,16 +175,16 @@ def prefill(self):
169
175
field .setText (serial_nr )
170
176
else :
171
177
field .setText (sent_sxchange_setting )
172
-
178
+
173
179
if self .other_2 .text () == "" :
174
180
call = self .callsign .text ().upper ()
175
181
query = f"select NR from dxlog where Call = '{ call } ' and ContestName = 'XMAS' order by ts desc;"
176
182
logger .debug (query )
177
183
result = self .database .exec_sql (query )
178
184
logger .debug ("%s" , f"{ result } " )
179
185
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" , "" )))
182
188
183
189
184
190
def points (self ):
@@ -216,7 +222,7 @@ def calc_score(self):
216
222
217
223
def adif (self ):
218
224
"""Call the generate ADIF function"""
219
- gen_adif (self , cabrillo_name , "CWOPS-CWT " )
225
+ gen_adif (self , cabrillo_name , "XMAS " )
220
226
221
227
222
228
def output_cabrillo_line (line_to_output , ending , file_descriptor , file_encoding ):
@@ -454,7 +460,6 @@ def recalculate_mults(self):
454
460
else :
455
461
contact ["IsMultiplier2" ] = 0
456
462
self .database .change_contact (contact )
457
-
458
463
459
464
460
465
def process_esm (self , new_focused_widget = None , with_enter = False ):
0 commit comments