not1mm 24.9.24__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.24"
3
+ __version__ = "24.9.25"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.9.24
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,7 @@ 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.
233
234
  - [24-9-24] Correct crash in CWT.
234
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.
235
236
  - [24-9-22] Merged in changes for CQ WW RTTY
@@ -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=mz6yvq8bhSVOeiXkhRkepYD2Z2JnURn3FjVx4ejtzz4,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
@@ -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.24.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
160
- not1mm-24.9.24.dist-info/METADATA,sha256=ayQxBWybdbxRecIdIMBjBGLG279akLXBYPGpZwZNteQ,31457
161
- not1mm-24.9.24.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
162
- not1mm-24.9.24.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
163
- not1mm-24.9.24.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
164
- not1mm-24.9.24.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,,