not1mm 25.5.26.1__py3-none-any.whl → 25.6.1__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.
Files changed (50) hide show
  1. not1mm/__main__.py +66 -43
  2. not1mm/data/MASTER.SCP +2636 -2654
  3. not1mm/data/cty.json +1 -1
  4. not1mm/data/new_contest.ui +5 -0
  5. not1mm/lib/database.py +14 -45
  6. not1mm/lib/edit_station.py +5 -5
  7. not1mm/lib/plugin_common.py +21 -0
  8. not1mm/lib/super_check_partial.py +28 -12
  9. not1mm/lib/version.py +1 -1
  10. not1mm/logwindow.py +4 -0
  11. not1mm/plugins/ari_dx.py +11 -11
  12. not1mm/plugins/arrl_160m.py +13 -13
  13. not1mm/plugins/arrl_dx_cw.py +47 -47
  14. not1mm/plugins/arrl_dx_ssb.py +48 -48
  15. not1mm/plugins/canada_day.py +6 -6
  16. not1mm/plugins/cq_160_cw.py +16 -16
  17. not1mm/plugins/cq_160_ssb.py +16 -16
  18. not1mm/plugins/cq_wpx_cw.py +28 -28
  19. not1mm/plugins/cq_wpx_rtty.py +20 -20
  20. not1mm/plugins/cq_wpx_ssb.py +28 -28
  21. not1mm/plugins/cq_ww_cw.py +19 -19
  22. not1mm/plugins/cq_ww_rtty.py +14 -14
  23. not1mm/plugins/cq_ww_ssb.py +18 -18
  24. not1mm/plugins/ea_majistad_cw.py +6 -6
  25. not1mm/plugins/ea_majistad_ssb.py +6 -6
  26. not1mm/plugins/ea_rtty.py +6 -6
  27. not1mm/plugins/es_field_day.py +604 -0
  28. not1mm/plugins/es_open.py +37 -26
  29. not1mm/plugins/helvetia.py +12 -12
  30. not1mm/plugins/iaru_hf.py +3 -3
  31. not1mm/plugins/jidx_cw.py +4 -4
  32. not1mm/plugins/jidx_ph.py +4 -4
  33. not1mm/plugins/lz-dx.py +12 -12
  34. not1mm/plugins/naqp_cw.py +6 -6
  35. not1mm/plugins/naqp_rtty.py +6 -6
  36. not1mm/plugins/naqp_ssb.py +6 -6
  37. not1mm/plugins/phone_weekly_test.py +6 -6
  38. not1mm/plugins/ref_cw.py +8 -8
  39. not1mm/plugins/ref_ssb.py +8 -8
  40. not1mm/plugins/sac_cw.py +9 -9
  41. not1mm/plugins/sac_ssb.py +11 -11
  42. not1mm/plugins/spdx.py +7 -7
  43. not1mm/plugins/ukeidx.py +10 -10
  44. not1mm/statistics.py +1 -0
  45. {not1mm-25.5.26.1.dist-info → not1mm-25.6.1.dist-info}/METADATA +7 -277
  46. {not1mm-25.5.26.1.dist-info → not1mm-25.6.1.dist-info}/RECORD +50 -49
  47. {not1mm-25.5.26.1.dist-info → not1mm-25.6.1.dist-info}/WHEEL +1 -1
  48. {not1mm-25.5.26.1.dist-info → not1mm-25.6.1.dist-info}/entry_points.txt +0 -0
  49. {not1mm-25.5.26.1.dist-info → not1mm-25.6.1.dist-info}/licenses/LICENSE +0 -0
  50. {not1mm-25.5.26.1.dist-info → not1mm-25.6.1.dist-info}/top_level.txt +0 -0
@@ -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
- for item in result.items():
147
- mycountry = item[1].get("entity", "")
148
- mycontinent = item[1].get("continent", "")
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
- for item in result.items():
152
- entity = item[1].get("entity", "")
153
- continent = item[1].get("continent", "")
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
- # Both in same country
156
- if mycountry.upper() == entity.upper():
157
- return 2
155
+ # Both in same country
156
+ if mycountry.upper() == entity.upper():
157
+ return 2
158
158
 
159
- # Same Continent
160
- if mycontinent == continent:
161
- return 5
159
+ # Same Continent
160
+ if mycontinent == continent:
161
+ return 5
162
162
 
163
- # Different Continent
164
- return 10
163
+ # Different Continent
164
+ return 10
165
165
  return 0
166
166
 
167
167
 
@@ -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
- for item in result.items():
164
- my_country = item[1].get("entity", "")
165
- my_continent = item[1].get("continent", "")
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
- for item in result.items():
170
- their_country = item[1].get("entity", "")
171
- their_continent = item[1].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
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
- # Below Same Continent Different Country
179
+ # Both in same country
180
+ if my_country.upper() == their_country.upper():
181
+ return 1
184
182
 
185
- # If in North America
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
- # Non NA
192
- if my_continent != "NA":
193
- if band in [28, 21, 14]:
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
 
@@ -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
- for item in result.items():
170
- my_country = item[1].get("entity", "")
171
- my_continent = item[1].get("continent", "")
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
- for item in result.items():
176
- their_country = item[1].get("entity", "")
177
- their_continent = item[1].get("continent", "")
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
- # Different Continent
180
- if my_continent != their_continent:
181
- if band in [28, 21, 14]:
182
- return 3
183
- return 6
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
- # Both in same country
186
- if my_country.upper() == their_country.upper():
187
- return 1
185
+ # Both in same country
186
+ if my_country.upper() == their_country.upper():
187
+ return 1
188
188
 
189
- # Below Same Continent Different Country
189
+ # Below Same Continent Different Country
190
190
 
191
- if band in [28, 21, 14]:
192
- return 2
193
- return 4
191
+ if band in [28, 21, 14]:
192
+ return 2
193
+ return 4
194
194
 
195
195
  # Something wrong
196
196
  return 0
@@ -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
- for item in result.items():
127
- my_country = item[1].get("entity", "")
128
- my_continent = item[1].get("continent", "")
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
- for item in result.items():
133
- their_country = item[1].get("entity", "")
134
- their_continent = item[1].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
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
- # Below Same Continent Different Country
142
+ # Both in same country
143
+ if my_country.upper() == their_country.upper():
144
+ return 1
147
145
 
148
- # If in North America
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
- # Non NA
155
- if my_continent != "NA":
156
- if band in [28, 21, 14]:
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
 
@@ -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
- for item in result.items():
149
- mycountry = item[1].get("entity", "")
150
- mycontinent = item[1].get("continent", "")
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
- if result:
154
- for item in result.items():
155
- entity = item[1].get("entity", "")
156
- continent = item[1].get("continent", "")
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
- # Contacts between stations on different continents count three (3) points.
159
- if mycontinent != continent:
160
- return 3
158
+ # Contacts between stations on different continents count three (3) points.
159
+ if mycontinent != continent:
160
+ return 3
161
161
 
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
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
- # Contacts between stations on the same continent but in different countries count one (1) point.
167
- if mycountry.upper() != entity.upper():
168
- return 1
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
- # Contacts between stations in the same country have zero (0) QSO point value, but count for zone and country multiplier credit.
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
 
@@ -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
- for item in result.items():
159
- mycountry = item[1].get("entity", "")
160
- mycontinent = item[1].get("continent", "")
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
- for item in result.items():
164
- entity = item[1].get("entity", "")
165
- continent = item[1].get("continent", "")
166
- if mycountry.upper() == entity.upper():
167
- return 1
168
- if mycontinent == continent:
169
- return 2
170
- else:
171
- return 3
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
 
@@ -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
- for item in result.items():
149
- mycountry = item[1].get("entity", "")
150
- mycontinent = item[1].get("continent", "")
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
- for item in result.items():
154
- entity = item[1].get("entity", "")
155
- continent = item[1].get("continent", "")
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
- # Contacts between stations on different continents count three (3) points.
158
- if mycontinent != continent:
159
- return 3
157
+ # Contacts between stations on different continents count three (3) points.
158
+ if mycontinent != continent:
159
+ return 3
160
160
 
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
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
- # Contacts between stations on the same continent but in different countries count one (1) point.
166
- if mycountry.upper() != entity.upper():
167
- return 1
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
- # Contacts between stations in the same country have zero (0) QSO point value, but count for zone and country multiplier credit.
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
 
@@ -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
- for item in result.items():
190
- me = item[1].get("primary_pfx", "")
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
- for item in result.items():
195
- him = item[1].get("primary_pfx", "")
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
- for item in result.items():
190
- me = item[1].get("primary_pfx", "")
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
- for item in result.items():
195
- him = item[1].get("primary_pfx", "")
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
- for item in result.items():
194
- me = item[1].get("primary_pfx", "")
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
- for item in result.items():
199
- him = item[1].get("primary_pfx", "")
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: