not1mm 25.5.26__py3-none-any.whl → 25.5.31__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/__main__.py +66 -43
- not1mm/data/MASTER.SCP +2636 -2654
- not1mm/data/new_contest.ui +5 -0
- not1mm/lib/database.py +14 -45
- not1mm/lib/edit_station.py +5 -5
- not1mm/lib/super_check_partial.py +28 -12
- not1mm/lib/version.py +1 -2
- not1mm/plugins/ari_dx.py +145 -14
- not1mm/plugins/arrl_160m.py +13 -13
- not1mm/plugins/arrl_dx_cw.py +47 -47
- not1mm/plugins/arrl_dx_ssb.py +48 -48
- not1mm/plugins/canada_day.py +6 -6
- not1mm/plugins/cq_160_cw.py +16 -16
- not1mm/plugins/cq_160_ssb.py +16 -16
- not1mm/plugins/cq_wpx_cw.py +28 -28
- not1mm/plugins/cq_wpx_rtty.py +20 -20
- not1mm/plugins/cq_wpx_ssb.py +28 -28
- not1mm/plugins/cq_ww_cw.py +19 -19
- not1mm/plugins/cq_ww_rtty.py +14 -14
- not1mm/plugins/cq_ww_ssb.py +18 -18
- not1mm/plugins/ea_majistad_cw.py +6 -6
- not1mm/plugins/ea_majistad_ssb.py +6 -6
- not1mm/plugins/ea_rtty.py +6 -6
- not1mm/plugins/es_field_day.py +617 -0
- not1mm/plugins/es_open.py +37 -26
- not1mm/plugins/helvetia.py +12 -12
- not1mm/plugins/iaru_hf.py +3 -3
- not1mm/plugins/jidx_cw.py +4 -4
- not1mm/plugins/jidx_ph.py +4 -4
- not1mm/plugins/lz-dx.py +12 -12
- not1mm/plugins/naqp_cw.py +6 -6
- not1mm/plugins/naqp_rtty.py +6 -6
- not1mm/plugins/naqp_ssb.py +6 -6
- not1mm/plugins/phone_weekly_test.py +6 -6
- not1mm/plugins/ref_cw.py +8 -8
- not1mm/plugins/ref_ssb.py +8 -8
- not1mm/plugins/sac_cw.py +9 -9
- not1mm/plugins/sac_ssb.py +11 -11
- not1mm/plugins/spdx.py +7 -7
- not1mm/plugins/ukeidx.py +10 -10
- {not1mm-25.5.26.dist-info → not1mm-25.5.31.dist-info}/METADATA +7 -266
- {not1mm-25.5.26.dist-info → not1mm-25.5.31.dist-info}/RECORD +46 -45
- {not1mm-25.5.26.dist-info → not1mm-25.5.31.dist-info}/WHEEL +1 -1
- {not1mm-25.5.26.dist-info → not1mm-25.5.31.dist-info}/entry_points.txt +0 -0
- {not1mm-25.5.26.dist-info → not1mm-25.5.31.dist-info}/licenses/LICENSE +0 -0
- {not1mm-25.5.26.dist-info → not1mm-25.5.31.dist-info}/top_level.txt +0 -0
not1mm/plugins/arrl_dx_ssb.py
CHANGED
@@ -103,14 +103,14 @@ def prefill(self):
|
|
103
103
|
# self.other_2.setText(str(self.contact.get("ZN", "")))
|
104
104
|
self.other_1.setText(str(self.contest_settings.get("SentExchange", 0)))
|
105
105
|
|
106
|
-
|
107
|
-
if
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
106
|
+
result = self.cty_lookup(self.station.get("Call", ""))
|
107
|
+
if result is not None:
|
108
|
+
item = result.get(next(iter(result)))
|
109
|
+
mycountry = item.get("primary_pfx", "")
|
110
|
+
if mycountry in ["K", "VE"]:
|
111
|
+
query = f"select count(*) as prefix_count from dxlog where Band={float(self.contact.get('Band', 0))} and CountryPrefix='{self.contact.get('CountryPrefix','')}' and ContestNR = {self.pref.get('contest', '1')} and points = 3;"
|
112
|
+
else:
|
113
|
+
query = f"select count(*) as prefix_count from dxlog where Band={float(self.contact.get('Band', 0))} and NR='{self.contact.get('NR','')}' and ContestNR = {self.pref.get('contest', '1')} and points = 3;"
|
114
114
|
|
115
115
|
result = self.database.exec_sql(query)
|
116
116
|
count = result.get("prefix_count", 0)
|
@@ -127,38 +127,38 @@ def points(self):
|
|
127
127
|
return 0
|
128
128
|
|
129
129
|
result = self.cty_lookup(self.station.get("Call", ""))
|
130
|
-
if result:
|
131
|
-
|
132
|
-
|
130
|
+
if result is not None:
|
131
|
+
item = result.get(next(iter(result)))
|
132
|
+
mycountry = item.get("primary_pfx", "")
|
133
133
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
134
|
-
if result:
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
if entity in ["K", "VE"]:
|
139
|
-
return 0
|
140
|
-
return 3
|
134
|
+
if result is not None:
|
135
|
+
item = result.get(next(iter(result)))
|
136
|
+
entity = item.get("primary_pfx", "")
|
137
|
+
if mycountry in ["K", "VE"]:
|
141
138
|
if entity in ["K", "VE"]:
|
142
|
-
return
|
143
|
-
return
|
139
|
+
return 0
|
140
|
+
return 3
|
141
|
+
if entity in ["K", "VE"]:
|
142
|
+
return 3
|
143
|
+
return 0
|
144
144
|
return 0
|
145
145
|
|
146
146
|
|
147
147
|
def show_mults(self, rtc=None):
|
148
148
|
"""Return display string for mults"""
|
149
|
-
|
149
|
+
result = self.cty_lookup(self.station.get("Call", ""))
|
150
150
|
_country, _state = 0, 0
|
151
|
-
if
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
151
|
+
if result is not None:
|
152
|
+
item = result.get(next(iter(result)))
|
153
|
+
mycountry = item.get("primary_pfx", "")
|
154
|
+
if mycountry in ["K", "VE"]:
|
155
|
+
result = self.database.fetch_arrldx_country_band_count()
|
156
|
+
if result:
|
157
|
+
_country = int(result.get("cb_count", 0))
|
158
|
+
else:
|
159
|
+
result = self.database.fetch_arrldx_state_prov_count()
|
160
|
+
if result:
|
161
|
+
_state = int(result.get("cb_count", 0))
|
162
162
|
if rtc is not None:
|
163
163
|
return (_country, _state)
|
164
164
|
return _country + _state
|
@@ -399,23 +399,23 @@ def recalculate_mults(self):
|
|
399
399
|
all_contacts = self.database.fetch_all_contacts_asc()
|
400
400
|
for contact in all_contacts:
|
401
401
|
time_stamp = contact.get("TS", "")
|
402
|
-
entity = contact.get("CountryPrefix", "")
|
402
|
+
# entity = contact.get("CountryPrefix", "")
|
403
403
|
location = self.cty_lookup(self.station.get("Call", ""))
|
404
|
-
if location:
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
404
|
+
if location is not None:
|
405
|
+
item = location.get(next(iter(location)))
|
406
|
+
mycountry = item.get("primary_pfx", "")
|
407
|
+
if mycountry in ["K", "VE"]:
|
408
|
+
query = (
|
409
|
+
f"select count(*) as prefix_count from dxlog where TS < '{time_stamp}' "
|
410
|
+
f"and CountryPrefix='{contact.get('CountryPrefix','')}' "
|
411
|
+
f"and ContestNR = {self.pref.get('contest', '1')} and points = 3;"
|
412
|
+
)
|
413
|
+
else:
|
414
|
+
query = (
|
415
|
+
f"select count(*) as prefix_count from dxlog where TS < '{time_stamp}' "
|
416
|
+
f"and NR='{contact.get('NR','')}' "
|
417
|
+
f"and ContestNR = {self.pref.get('contest', '1')} and points = 3;"
|
418
|
+
)
|
419
419
|
result = self.database.exec_sql(query)
|
420
420
|
logger.debug("contact: %s", contact)
|
421
421
|
logger.debug("query: %s", query)
|
not1mm/plugins/canada_day.py
CHANGED
@@ -159,12 +159,12 @@ def points(self):
|
|
159
159
|
return 20
|
160
160
|
|
161
161
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
162
|
-
if result:
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
162
|
+
if result is not None:
|
163
|
+
item = result.get(next(iter(result)))
|
164
|
+
entity = item.get("entity", "")
|
165
|
+
# continent = item[1].get("continent", "")
|
166
|
+
if entity == "Canada":
|
167
|
+
return 10
|
168
168
|
|
169
169
|
return 2
|
170
170
|
|
not1mm/plugins/cq_160_cw.py
CHANGED
@@ -142,26 +142,26 @@ def points(self):
|
|
142
142
|
return 5
|
143
143
|
|
144
144
|
result = self.cty_lookup(self.station.get("Call", ""))
|
145
|
-
if result:
|
146
|
-
|
147
|
-
|
148
|
-
|
145
|
+
if result is not None:
|
146
|
+
item = result.get(next(iter(result)))
|
147
|
+
mycountry = item.get("entity", "")
|
148
|
+
mycontinent = item.get("continent", "")
|
149
149
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
150
|
-
if result:
|
151
|
-
|
152
|
-
|
153
|
-
|
150
|
+
if result is not None:
|
151
|
+
item = result.get(next(iter(result)))
|
152
|
+
entity = item.get("entity", "")
|
153
|
+
continent = item.get("continent", "")
|
154
154
|
|
155
|
-
|
156
|
-
|
157
|
-
|
155
|
+
# Both in same country
|
156
|
+
if mycountry.upper() == entity.upper():
|
157
|
+
return 2
|
158
158
|
|
159
|
-
|
160
|
-
|
161
|
-
|
159
|
+
# Same Continent
|
160
|
+
if mycontinent == continent:
|
161
|
+
return 5
|
162
162
|
|
163
|
-
|
164
|
-
|
163
|
+
# Different Continent
|
164
|
+
return 10
|
165
165
|
return 0
|
166
166
|
|
167
167
|
|
not1mm/plugins/cq_160_ssb.py
CHANGED
@@ -142,26 +142,26 @@ def points(self):
|
|
142
142
|
return 5
|
143
143
|
|
144
144
|
result = self.cty_lookup(self.station.get("Call", ""))
|
145
|
-
if result:
|
146
|
-
|
147
|
-
|
148
|
-
|
145
|
+
if result is not None:
|
146
|
+
item = result.get(next(iter(result)))
|
147
|
+
mycountry = item.get("entity", "")
|
148
|
+
mycontinent = item.get("continent", "")
|
149
149
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
150
|
-
if result:
|
151
|
-
|
152
|
-
|
153
|
-
|
150
|
+
if result is not None:
|
151
|
+
item = result.get(next(iter(result)))
|
152
|
+
entity = item.get("entity", "")
|
153
|
+
continent = item.get("continent", "")
|
154
154
|
|
155
|
-
|
156
|
-
|
157
|
-
|
155
|
+
# Both in same country
|
156
|
+
if mycountry.upper() == entity.upper():
|
157
|
+
return 2
|
158
158
|
|
159
|
-
|
160
|
-
|
161
|
-
|
159
|
+
# Same Continent
|
160
|
+
if mycontinent == continent:
|
161
|
+
return 5
|
162
162
|
|
163
|
-
|
164
|
-
|
163
|
+
# Different Continent
|
164
|
+
return 10
|
165
165
|
return 0
|
166
166
|
|
167
167
|
|
not1mm/plugins/cq_wpx_cw.py
CHANGED
@@ -159,40 +159,40 @@ def points(self):
|
|
159
159
|
return 0
|
160
160
|
|
161
161
|
result = self.cty_lookup(self.station.get("Call", ""))
|
162
|
-
if result:
|
163
|
-
|
164
|
-
|
165
|
-
|
162
|
+
if result is not None:
|
163
|
+
item = result.get(next(iter(result)))
|
164
|
+
my_country = item.get("entity", "")
|
165
|
+
my_continent = item.get("continent", "")
|
166
166
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
167
167
|
band = int(int(float(self.contact.get("Freq", 0))) / 1000)
|
168
|
-
if result:
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
# Both in same country
|
180
|
-
if my_country.upper() == their_country.upper():
|
181
|
-
return 1
|
168
|
+
if result is not None:
|
169
|
+
item = result.get(next(iter(result)))
|
170
|
+
their_country = item.get("entity", "")
|
171
|
+
their_continent = item.get("continent", "")
|
172
|
+
|
173
|
+
# Different Continent
|
174
|
+
if my_continent != their_continent:
|
175
|
+
if band in [28, 21, 14]:
|
176
|
+
return 3
|
177
|
+
return 6
|
182
178
|
|
183
|
-
|
179
|
+
# Both in same country
|
180
|
+
if my_country.upper() == their_country.upper():
|
181
|
+
return 1
|
184
182
|
|
185
|
-
|
186
|
-
if my_continent == "NA":
|
187
|
-
if band in [28, 21, 14]:
|
188
|
-
return 2
|
189
|
-
return 4
|
183
|
+
# Below Same Continent Different Country
|
190
184
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
return 1
|
185
|
+
# If in North America
|
186
|
+
if my_continent == "NA":
|
187
|
+
if band in [28, 21, 14]:
|
195
188
|
return 2
|
189
|
+
return 4
|
190
|
+
|
191
|
+
# Non NA
|
192
|
+
if my_continent != "NA":
|
193
|
+
if band in [28, 21, 14]:
|
194
|
+
return 1
|
195
|
+
return 2
|
196
196
|
# Something wrong
|
197
197
|
return 0
|
198
198
|
|
not1mm/plugins/cq_wpx_rtty.py
CHANGED
@@ -165,32 +165,32 @@ def points(self):
|
|
165
165
|
return 0
|
166
166
|
|
167
167
|
result = self.cty_lookup(self.station.get("Call", ""))
|
168
|
-
if result:
|
169
|
-
|
170
|
-
|
171
|
-
|
168
|
+
if result is not None:
|
169
|
+
item = result.get(next(iter(result)))
|
170
|
+
my_country = item.get("entity", "")
|
171
|
+
my_continent = item.get("continent", "")
|
172
172
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
173
173
|
band = int(int(float(self.contact.get("Freq", 0))) / 1000)
|
174
|
-
if result:
|
175
|
-
|
176
|
-
|
177
|
-
|
174
|
+
if result is not None:
|
175
|
+
item = result.get(next(iter(result)))
|
176
|
+
their_country = item.get("entity", "")
|
177
|
+
their_continent = item.get("continent", "")
|
178
178
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
179
|
+
# Different Continent
|
180
|
+
if my_continent != their_continent:
|
181
|
+
if band in [28, 21, 14]:
|
182
|
+
return 3
|
183
|
+
return 6
|
184
184
|
|
185
|
-
|
186
|
-
|
187
|
-
|
185
|
+
# Both in same country
|
186
|
+
if my_country.upper() == their_country.upper():
|
187
|
+
return 1
|
188
188
|
|
189
|
-
|
189
|
+
# Below Same Continent Different Country
|
190
190
|
|
191
|
-
|
192
|
-
|
193
|
-
|
191
|
+
if band in [28, 21, 14]:
|
192
|
+
return 2
|
193
|
+
return 4
|
194
194
|
|
195
195
|
# Something wrong
|
196
196
|
return 0
|
not1mm/plugins/cq_wpx_ssb.py
CHANGED
@@ -122,40 +122,40 @@ def points(self):
|
|
122
122
|
return 0
|
123
123
|
|
124
124
|
result = self.cty_lookup(self.station.get("Call", ""))
|
125
|
-
if result:
|
126
|
-
|
127
|
-
|
128
|
-
|
125
|
+
if result is not None:
|
126
|
+
item = result.get(next(iter(result)))
|
127
|
+
my_country = item.get("entity", "")
|
128
|
+
my_continent = item.get("continent", "")
|
129
129
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
130
130
|
band = int(int(float(self.contact.get("Freq", 0))) / 1000)
|
131
|
-
if result:
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
# Both in same country
|
143
|
-
if my_country.upper() == their_country.upper():
|
144
|
-
return 1
|
131
|
+
if result is not None:
|
132
|
+
item = result.get(next(iter(result)))
|
133
|
+
their_country = item.get("entity", "")
|
134
|
+
their_continent = item.get("continent", "")
|
135
|
+
|
136
|
+
# Different Continent
|
137
|
+
if my_continent != their_continent:
|
138
|
+
if band in [28, 21, 14]:
|
139
|
+
return 3
|
140
|
+
return 6
|
145
141
|
|
146
|
-
|
142
|
+
# Both in same country
|
143
|
+
if my_country.upper() == their_country.upper():
|
144
|
+
return 1
|
147
145
|
|
148
|
-
|
149
|
-
if my_continent == "NA":
|
150
|
-
if band in [28, 21, 14]:
|
151
|
-
return 2
|
152
|
-
return 4
|
146
|
+
# Below Same Continent Different Country
|
153
147
|
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
return 1
|
148
|
+
# If in North America
|
149
|
+
if my_continent == "NA":
|
150
|
+
if band in [28, 21, 14]:
|
158
151
|
return 2
|
152
|
+
return 4
|
153
|
+
|
154
|
+
# Non NA
|
155
|
+
if my_continent != "NA":
|
156
|
+
if band in [28, 21, 14]:
|
157
|
+
return 1
|
158
|
+
return 2
|
159
159
|
# Something wrong
|
160
160
|
return 0
|
161
161
|
|
not1mm/plugins/cq_ww_cw.py
CHANGED
@@ -144,30 +144,30 @@ def points(self):
|
|
144
144
|
return 0
|
145
145
|
|
146
146
|
result = self.cty_lookup(self.station.get("Call", ""))
|
147
|
-
if result:
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
result = self.cty_lookup(self.contact.get("Call", ""))
|
147
|
+
if result is not None:
|
148
|
+
item = result.get(next(iter(result)))
|
149
|
+
mycountry = item.get("entity", "")
|
150
|
+
mycontinent = item.get("continent", "")
|
152
151
|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
152
|
+
result = self.cty_lookup(self.contact.get("Call", ""))
|
153
|
+
if result is not None:
|
154
|
+
item = result.get(next(iter(result)))
|
155
|
+
entity = item.get("entity", "")
|
156
|
+
continent = item.get("continent", "")
|
157
157
|
|
158
|
-
|
159
|
-
|
160
|
-
|
158
|
+
# Contacts between stations on different continents count three (3) points.
|
159
|
+
if mycontinent != continent:
|
160
|
+
return 3
|
161
161
|
|
162
|
-
|
163
|
-
|
164
|
-
|
162
|
+
# Exception: Contacts between stations in different countries within the North American boundaries count two (2) points.
|
163
|
+
if (mycontinent == "NA" and continent == "NA") and mycountry != entity:
|
164
|
+
return 2
|
165
165
|
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
# Contacts between stations on the same continent but in different countries count one (1) point.
|
167
|
+
if mycountry.upper() != entity.upper():
|
168
|
+
return 1
|
169
169
|
|
170
|
-
|
170
|
+
# Contacts between stations in the same country have zero (0) QSO point value, but count for zone and country multiplier credit.
|
171
171
|
|
172
172
|
return 0
|
173
173
|
|
not1mm/plugins/cq_ww_rtty.py
CHANGED
@@ -154,21 +154,21 @@ def points(self):
|
|
154
154
|
return 0
|
155
155
|
|
156
156
|
result = self.cty_lookup(self.station.get("Call", ""))
|
157
|
-
if result:
|
158
|
-
|
159
|
-
|
160
|
-
|
157
|
+
if result is not None:
|
158
|
+
item = result.get(next(iter(result)))
|
159
|
+
mycountry = item.get("entity", "")
|
160
|
+
mycontinent = item.get("continent", "")
|
161
161
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
162
|
-
if result:
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
162
|
+
if result is not None:
|
163
|
+
item = result.get(next(iter(result)))
|
164
|
+
entity = item.get("entity", "")
|
165
|
+
continent = item.get("continent", "")
|
166
|
+
if mycountry.upper() == entity.upper():
|
167
|
+
return 1
|
168
|
+
if mycontinent == continent:
|
169
|
+
return 2
|
170
|
+
else:
|
171
|
+
return 3
|
172
172
|
return 0
|
173
173
|
|
174
174
|
|
not1mm/plugins/cq_ww_ssb.py
CHANGED
@@ -144,29 +144,29 @@ def points(self):
|
|
144
144
|
return 0
|
145
145
|
|
146
146
|
result = self.cty_lookup(self.station.get("Call", ""))
|
147
|
-
if result:
|
148
|
-
|
149
|
-
|
150
|
-
|
147
|
+
if result is not None:
|
148
|
+
item = result.get(next(iter(result)))
|
149
|
+
mycountry = item.get("entity", "")
|
150
|
+
mycontinent = item.get("continent", "")
|
151
151
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
152
|
-
if result:
|
153
|
-
|
154
|
-
|
155
|
-
|
152
|
+
if result is not None:
|
153
|
+
item = result.get(next(iter(result)))
|
154
|
+
entity = item.get("entity", "")
|
155
|
+
continent = item.get("continent", "")
|
156
156
|
|
157
|
-
|
158
|
-
|
159
|
-
|
157
|
+
# Contacts between stations on different continents count three (3) points.
|
158
|
+
if mycontinent != continent:
|
159
|
+
return 3
|
160
160
|
|
161
|
-
|
162
|
-
|
163
|
-
|
161
|
+
# Exception: Contacts between stations in different countries within the North American boundaries count two (2) points.
|
162
|
+
if (mycontinent == "NA" and continent == "NA") and mycountry != entity:
|
163
|
+
return 2
|
164
164
|
|
165
|
-
|
166
|
-
|
167
|
-
|
165
|
+
# Contacts between stations on the same continent but in different countries count one (1) point.
|
166
|
+
if mycountry.upper() != entity.upper():
|
167
|
+
return 1
|
168
168
|
|
169
|
-
|
169
|
+
# Contacts between stations in the same country have zero (0) QSO point value, but count for zone and country multiplier credit.
|
170
170
|
|
171
171
|
return 0
|
172
172
|
|
not1mm/plugins/ea_majistad_cw.py
CHANGED
@@ -185,14 +185,14 @@ def points(self) -> int:
|
|
185
185
|
him = None
|
186
186
|
|
187
187
|
result = self.cty_lookup(self.station.get("Call", ""))
|
188
|
-
if result:
|
189
|
-
|
190
|
-
|
188
|
+
if result is not None:
|
189
|
+
item = result.get(next(iter(result)))
|
190
|
+
me = item.get("primary_pfx", "")
|
191
191
|
|
192
192
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
193
|
-
if result:
|
194
|
-
|
195
|
-
|
193
|
+
if result is not None:
|
194
|
+
item = result.get(next(iter(result)))
|
195
|
+
him = item.get("primary_pfx", "")
|
196
196
|
|
197
197
|
if me is not None and him is not None:
|
198
198
|
if me in ea_prefixes and him in ea_prefixes:
|
@@ -185,14 +185,14 @@ def points(self) -> int:
|
|
185
185
|
him = None
|
186
186
|
|
187
187
|
result = self.cty_lookup(self.station.get("Call", ""))
|
188
|
-
if result:
|
189
|
-
|
190
|
-
|
188
|
+
if result is not None:
|
189
|
+
item = result.get(next(iter(result)))
|
190
|
+
me = item.get("primary_pfx", "")
|
191
191
|
|
192
192
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
193
|
-
if result:
|
194
|
-
|
195
|
-
|
193
|
+
if result is not None:
|
194
|
+
item = result.get(next(iter(result)))
|
195
|
+
him = item.get("primary_pfx", "")
|
196
196
|
|
197
197
|
if me is not None and him is not None:
|
198
198
|
if me in ea_prefixes and him in ea_prefixes:
|
not1mm/plugins/ea_rtty.py
CHANGED
@@ -189,14 +189,14 @@ def points(self) -> int:
|
|
189
189
|
him = None
|
190
190
|
|
191
191
|
result = self.cty_lookup(self.station.get("Call", ""))
|
192
|
-
if result:
|
193
|
-
|
194
|
-
|
192
|
+
if result is not None:
|
193
|
+
item = result.get(next(iter(result)))
|
194
|
+
me = item.get("primary_pfx", "")
|
195
195
|
|
196
196
|
result = self.cty_lookup(self.contact.get("Call", ""))
|
197
|
-
if result:
|
198
|
-
|
199
|
-
|
197
|
+
if result is not None:
|
198
|
+
item = result.get(next(iter(result)))
|
199
|
+
him = item.get("primary_pfx", "")
|
200
200
|
|
201
201
|
if me is not None and him is not None:
|
202
202
|
if me in ea_prefixes and him in ea_prefixes:
|