not1mm 24.9.23__py3-none-any.whl → 24.9.25__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 CHANGED
@@ -2661,32 +2661,34 @@ class MainWindow(QtWidgets.QMainWindow):
2661
2661
  json_data.get("cmd", "") == "LOOKUP_RESPONSE"
2662
2662
  and json_data.get("station", "") == platform.node()
2663
2663
  ):
2664
-
2665
- fname = json_data.get("result", {}).get("fname", "")
2666
- name = json_data.get("result", {}).get("name", "")
2667
- grid = json_data.get("result", {}).get("grid", "")
2668
- # error_text = json_data.get("result", {}).get("error_text", "")
2669
- nickname = json_data.get("result", {}).get("nickname", "")
2670
-
2671
- if self.contest:
2672
- if "General Logging" in self.contest.name:
2673
- if nickname:
2674
- self.other_1.setText(nickname)
2675
- elif fname:
2676
- self.other_1.setText(fname)
2677
- elif name:
2678
- self.other_1.setText(name)
2679
-
2680
- if grid:
2681
- self.contact["GridSquare"] = grid
2682
- # _theircountry = response.get("country", "")
2683
- if self.station.get("GridSquare", ""):
2684
- heading = bearing(self.station.get("GridSquare", ""), grid)
2685
- kilometers = distance(self.station.get("GridSquare", ""), grid)
2686
- self.heading_distance.setText(
2687
- f"{grid} Hdg {heading}° LP {reciprocol(heading)}° / "
2688
- f"distance {int(kilometers*0.621371)}mi {kilometers}km"
2689
- )
2664
+ if json_data.get("result", None) is not None:
2665
+ fname = json_data.get("result", {}).get("fname", "")
2666
+ name = json_data.get("result", {}).get("name", "")
2667
+ grid = json_data.get("result", {}).get("grid", "")
2668
+ # error_text = json_data.get("result", {}).get("error_text", "")
2669
+ nickname = json_data.get("result", {}).get("nickname", "")
2670
+
2671
+ if self.contest:
2672
+ if "General Logging" in self.contest.name:
2673
+ if nickname:
2674
+ self.other_1.setText(nickname)
2675
+ elif fname:
2676
+ self.other_1.setText(fname)
2677
+ elif name:
2678
+ self.other_1.setText(name)
2679
+
2680
+ if grid:
2681
+ self.contact["GridSquare"] = grid
2682
+ # _theircountry = response.get("country", "")
2683
+ if self.station.get("GridSquare", ""):
2684
+ heading = bearing(self.station.get("GridSquare", ""), grid)
2685
+ kilometers = distance(
2686
+ self.station.get("GridSquare", ""), grid
2687
+ )
2688
+ self.heading_distance.setText(
2689
+ f"{grid} Hdg {heading}° LP {reciprocol(heading)}° / "
2690
+ f"distance {int(kilometers*0.621371)}mi {kilometers}km"
2691
+ )
2690
2692
 
2691
2693
  def dark_mode_state_changed(self) -> None:
2692
2694
  """Called when the Dark Mode menu state is changed."""
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "24.9.23"
3
+ __version__ = "24.9.25"
not1mm/plugins/cwt.py CHANGED
@@ -144,10 +144,7 @@ def predupe(self):
144
144
  """prefill his exchange with last known values"""
145
145
  if self.other_1.text() == "" and self.other_2.text() == "":
146
146
  call = self.callsign.text().upper()
147
- query = (
148
- f"select NR from dxlog where Call = '{call}' ",
149
- "and ContestName = 'CWOPS-CWT' order by ts desc;",
150
- )
147
+ query = f"select NR from dxlog where Call = '{call}' and ContestName = 'CWOPS-CWT' order by ts desc;"
151
148
  logger.debug(query)
152
149
  result = self.database.exec_sql(query)
153
150
  logger.debug("%s", f"{result}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.9.23
3
+ Version: 24.9.25
4
4
  Summary: NOT1MM Logger
5
5
  Author-email: Michael Bridak <michael.bridak@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/mbridak/not1mm
@@ -230,6 +230,8 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
230
230
 
231
231
  ## Recent Changes
232
232
 
233
+ - [24-9-25] Fix QRZ lookup crash on non-existant call.
234
+ - [24-9-24] Correct crash in CWT.
233
235
  - [24-9-23] Improved serial interface to rigctld. Send RTTY macros to fldigi when radio modes are RTTY, USB-D, LSB-D, PKTLSB, PKTUSB, DIGI-U, DIGI-L.
234
236
  - [24-9-22] Merged in changes for CQ WW RTTY
235
237
  - [24-9-15] Fixing an ARRL VHF Cabrillo format error.
@@ -1,5 +1,5 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=V43gwbqBhUAPw8HfjTcYbA61nzejpcQJSIYoXk5BKY0,126943
2
+ not1mm/__main__.py,sha256=Gcdrf7vz0HMZqw8aZ__NTBb-grl3nzzApXcu1TlsR-g,127162
3
3
  not1mm/bandmap.py,sha256=1b5tXCfGTnpqqn6hPNt7zRA8SmuwSXzSwNHZXhCRt70,31434
4
4
  not1mm/checkwindow.py,sha256=aI-nr8OF90IWV7R_XRdmitvBJ9M85evCs72HoU3Jnvc,10374
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
@@ -114,7 +114,7 @@ not1mm/lib/plugin_common.py,sha256=HbphFFzU1XIIHgsCHOb_tCAnQyqT-nYnxoiz1oZ2_cg,9
114
114
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
115
115
  not1mm/lib/settings.py,sha256=MWiKXbasaFbzeHTjfzTaTqbCBrIijudP_-0a5jNmUAA,9265
116
116
  not1mm/lib/super_check_partial.py,sha256=p5l3u2ZOCBtlWgbvskC50FpuoaIpR07tfC6zTdRWbh4,2334
117
- not1mm/lib/version.py,sha256=KsnGHengWCv9w4hEEpMncmQfrgUm2Ng8DMA65PR0T5o,48
117
+ not1mm/lib/version.py,sha256=3IDWkTF3EBhk8uoghldqAuHwDQBEMQO5xxZ1pNr6ifQ,48
118
118
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
119
119
  not1mm/plugins/10_10_fall_cw.py,sha256=IttjX1yy4nDdACGsiYlPteFG8eVseX_WtoFio6bqHE8,10953
120
120
  not1mm/plugins/10_10_spring_cw.py,sha256=ThCptdM3dX4ywhoy2JRcOEyHSqcJolFaT7O_PYzM1Mg,10958
@@ -139,7 +139,7 @@ not1mm/plugins/cq_wpx_ssb.py,sha256=-hGRovqHR9rfOUnG4LPOoABTb4heH8VAX6rYdJbCqsw,
139
139
  not1mm/plugins/cq_ww_cw.py,sha256=m4Xkqb_qFyXWEgkxqbanvtiCTvI8NNPKNXzHgFZzhnE,12340
140
140
  not1mm/plugins/cq_ww_rtty.py,sha256=RK7xmZN3f_7Pk1bFKXvqEQd1NAsoJFO-xuhLrtp0qhw,16279
141
141
  not1mm/plugins/cq_ww_ssb.py,sha256=hZwG88-hPLmwIGXHX_S_ty8Nhn1kIuPjSuTRpCWoN9g,12631
142
- not1mm/plugins/cwt.py,sha256=4xdXN6ZJM5k-6gn0hJzNheWfFlGiqquC2p0ZMEe516M,12818
142
+ not1mm/plugins/cwt.py,sha256=k5yX_2Ma_arVxzDP2E9mwA08LUVFLOk8vUpHwHt2aGA,12777
143
143
  not1mm/plugins/general_logging.py,sha256=t02xtJs601qRICGdrvLs3G9y4GCG9H4AgQNkgA18CYs,3467
144
144
  not1mm/plugins/helvetia.py,sha256=6aOO4uiLzFFgHA-A3xz6IRdCJpqPOAm0egKxP5Y_Ie0,15432
145
145
  not1mm/plugins/iaru_fieldday_r1_cw.py,sha256=B_kh8d8LkC0va_iIiIzImOKAT8724yf9ceF-2eQdx1w,13301
@@ -156,9 +156,9 @@ not1mm/plugins/ref_cw.py,sha256=aWjHHkqIKutjRUtzh09y5haFfnZK9poRQDWRQMDRxxU,1632
156
156
  not1mm/plugins/stew_perry_topband.py,sha256=CKBQbYl4ETxhXJd2dma4fg_C5pag_s7Nf61SCztZtqE,10668
157
157
  not1mm/plugins/weekly_rtty.py,sha256=DQcy3SY0Zn56EdlYGf3NxrRhTnkNa5IqRQPRQdKDSPs,14255
158
158
  not1mm/plugins/winter_field_day.py,sha256=4rcfRtobwjHO6BNL3WOTHzBmyyeuX79BNGBG8PfjrI8,10238
159
- not1mm-24.9.23.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
160
- not1mm-24.9.23.dist-info/METADATA,sha256=UNYhVlycDl_2wQtVOiFN_f2Rs0rlyOUNY-WvZaqM58Y,31423
161
- not1mm-24.9.23.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
162
- not1mm-24.9.23.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
163
- not1mm-24.9.23.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
164
- not1mm-24.9.23.dist-info/RECORD,,
159
+ not1mm-24.9.25.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
160
+ not1mm-24.9.25.dist-info/METADATA,sha256=Z196wUpIUL2P5x2CyP62QeliPUba55Bj9o-USjdddRk,31512
161
+ not1mm-24.9.25.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
162
+ not1mm-24.9.25.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
163
+ not1mm-24.9.25.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
164
+ not1mm-24.9.25.dist-info/RECORD,,