not1mm 25.1.23__py3-none-any.whl → 25.1.24__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
@@ -182,6 +182,7 @@ class MainWindow(QtWidgets.QMainWindow):
182
182
  check_window = None
183
183
  bandmap_window = None
184
184
  vfo_window = None
185
+ rate_window = None
185
186
  lookup_service = None
186
187
  fldigi_util = None
187
188
  rtc_service = None
@@ -706,7 +707,6 @@ class MainWindow(QtWidgets.QMainWindow):
706
707
 
707
708
  self.actionRate_Window.setChecked(self.pref.get("ratewindow", False))
708
709
  if self.actionRate_Window.isChecked():
709
- print(f"===============ratewindow=============")
710
710
  self.rate_window.show()
711
711
  self.rate_window.setActive(True)
712
712
  else:
@@ -987,6 +987,8 @@ class MainWindow(QtWidgets.QMainWindow):
987
987
  self.check_window.msg_from_main(cmd)
988
988
  if self.vfo_window:
989
989
  self.vfo_window.msg_from_main(cmd)
990
+ if self.rate_window:
991
+ self.rate_window.msg_from_main(cmd)
990
992
 
991
993
  if setdarkmode:
992
994
  darkPalette = QPalette()
@@ -1326,6 +1328,8 @@ class MainWindow(QtWidgets.QMainWindow):
1326
1328
  cmd["cmd"] = "NEWDB"
1327
1329
  if self.log_window:
1328
1330
  self.log_window.msg_from_main(cmd)
1331
+ if self.rate_window:
1332
+ self.rate_window.msg_from_main(cmd)
1329
1333
  self.clearinputs()
1330
1334
  self.edit_station_settings()
1331
1335
 
@@ -1363,6 +1367,8 @@ class MainWindow(QtWidgets.QMainWindow):
1363
1367
  cmd["cmd"] = "NEWDB"
1364
1368
  if self.log_window:
1365
1369
  self.log_window.msg_from_main(cmd)
1370
+ if self.rate_window:
1371
+ self.rate_window.msg_from_main(cmd)
1366
1372
  self.clearinputs()
1367
1373
  self.open_contest()
1368
1374
 
@@ -1653,6 +1659,8 @@ class MainWindow(QtWidgets.QMainWindow):
1653
1659
  cmd["cmd"] = "NEWDB"
1654
1660
  if self.log_window:
1655
1661
  self.log_window.msg_from_main(cmd)
1662
+ if self.rate_window:
1663
+ self.rate_window.msg_from_main(cmd)
1656
1664
  if hasattr(self.contest, "columns"):
1657
1665
  cmd = {}
1658
1666
  cmd["cmd"] = "SHOWCOLUMNS"
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "25.1.23"
3
+ __version__ = "25.1.24"
not1mm/ratewindow.py CHANGED
@@ -63,8 +63,7 @@ class RateWindow(QDockWidget):
63
63
  return
64
64
 
65
65
  if packet.get("cmd", "") == "NEWDB":
66
- ...
67
- # self.load_new_db()
66
+ self.load_pref()
68
67
 
69
68
  def setActive(self, mode: bool):
70
69
  self.active = bool(mode)
@@ -169,9 +168,10 @@ class RateWindow(QDockWidget):
169
168
  # Get Q's in the 60 Minutes
170
169
  query = f"select (julianday(MAX(ts)) - julianday(MIN(ts))) * 24 * 60 as timespan, count(*) as items from (select * from dxlog where ContestNR = {self.database.current_contest} and datetime(TS) > datetime(current_timestamp, '-60 minutes'));"
171
170
  result = self.database.exec_sql(query)
172
-
173
171
  if result.get("items", 0) < 1:
174
172
  self.last_hour.setText("--- Q/h")
173
+ elif result.get("items", 0) == 1:
174
+ self.last_hour.setText("1 Q/h")
175
175
  else:
176
176
  try:
177
177
  perhour = (60.0 / result.get("timespan", 60)) * result.get("items", 0)
@@ -217,9 +217,9 @@ class RateWindow(QDockWidget):
217
217
  result = self.database.exec_sql(query)
218
218
  try:
219
219
  sandp = result.get("totalqs", 0) - result.get("runs", 0)
220
- self.run_qso.setText(f"{result.get("runs", 0)}")
220
+ self.run_qso.setText(f"{result.get('runs', 0)}")
221
221
  self.sandp_qso.setText(f"{sandp}")
222
- self.qso_counts.setText(f"{result.get("totalqs", 0)} pts")
222
+ self.qso_counts.setText(f"{result.get('totalqs', 0)} pts")
223
223
  except TypeError:
224
224
  ...
225
225
 
@@ -228,7 +228,7 @@ class RateWindow(QDockWidget):
228
228
  result = self.database.exec_sql(query)
229
229
  try:
230
230
  sandp = result.get("totalqs", 0) - result.get("runs", 0)
231
- self.hour_run_qso.setText(f"{result.get("runs", 0)}")
231
+ self.hour_run_qso.setText(f"{result.get('runs', 0)}")
232
232
  self.hour_sandp_qso.setText(f"{sandp}")
233
233
  except TypeError:
234
234
  ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: not1mm
3
- Version: 25.1.23
3
+ Version: 25.1.24
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
@@ -235,6 +235,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
235
235
 
236
236
  ## Recent Changes (Polishing the Turd)
237
237
 
238
+ - [25-1-24] Fix mismatched quotes causing crash.
238
239
  - [25-1-23] Added a basic rate window. Changed DB to WAL mode.
239
240
  - [25-1-15] Fix bug in ADIF output where mode showed as CW-R and not CW.
240
241
  - [25-1-6] Altered RTTY RU UDP ADIF parse.
@@ -1,12 +1,12 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- not1mm/__main__.py,sha256=4TslHv_xs1nYgUicgGvtK07oPvFYwtf0T6OHKsaytB8,146185
2
+ not1mm/__main__.py,sha256=aBVK-7dZDYKD2dsqmhIAzpxBG_pRpzKBm6W5aIEFwPU,146487
3
3
  not1mm/bandmap.py,sha256=zD3aUf36NVQCy0plAcZLNxYhSEM9xZ8J1Cu9vrcFPYA,31136
4
4
  not1mm/checkwindow.py,sha256=VFAcKYTcoWhmIf91chwY6tyao9FQMWPiUkgDDkkWaog,9670
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
6
6
  not1mm/logwindow.py,sha256=TvpzQTNB92hISlUO3iWBqtlPmlebdhOkAArx0DNGcOs,43966
7
7
  not1mm/lookupservice.py,sha256=GkY_qHZfrW6XHf8upIoaG4hCFqm0fg6Ganu9ConGrIc,2628
8
8
  not1mm/radio.py,sha256=c4m7Ci38uKGKxB0JUT5uOKalI_Mm8Vmixu5D_roN5z4,5400
9
- not1mm/ratewindow.py,sha256=eAIjya6D83SAmXH7uBArUyZiMDSYNDoRzz3Y5UVzSy4,9623
9
+ not1mm/ratewindow.py,sha256=SAtbC5pAA2urV3lBQN1HI99fktx6LiHMxxGRreH9190,9688
10
10
  not1mm/rtc_service.py,sha256=axAwnCBuTr-QL0YwXtWvg9tjwhcFsiiEZFgFjOofX6k,2816
11
11
  not1mm/test.py,sha256=RN71m2S9MPIOJMaoCi0wZhwEhpEZunvtosZxaKahRB4,101
12
12
  not1mm/vfo.py,sha256=ggPyWtxMbdSE5RwdK0nDRwDNqOxdpb_pvnzZdbzZVQE,11136
@@ -116,7 +116,7 @@ not1mm/lib/plugin_common.py,sha256=M5reDYM-v5IjAa2yTROvZTeTDkXYHb3U52W9mc9GxwA,1
116
116
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
117
117
  not1mm/lib/settings.py,sha256=j5lIMLHJ-eqIaVr_QhI82gkbOl17_C-5suRkWbHYET8,14717
118
118
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
119
- not1mm/lib/version.py,sha256=DpSG7ODlKeORCWHhfP6siFU6x8qSgV-CRyUyC-zUp48,48
119
+ not1mm/lib/version.py,sha256=HcPnaAb2SPo392ZxaG4ZcTiApnZk1fZHvAuQyfrEKPg,48
120
120
  not1mm/lib/versiontest.py,sha256=8vDNptuBBunn-1IGkjNaquehqBYUJyjrPSF8Igmd4_Y,1286
121
121
  not1mm/plugins/10_10_fall_cw.py,sha256=5QUyGMvGBC-HxcY_z9QbfuxSg3f7p6C9K4qhTxgZE7k,14719
122
122
  not1mm/plugins/10_10_spring_cw.py,sha256=XjYFM263WYyG6nVQzPObW4YC7Z9L93rixSOcVsxPvH4,14722
@@ -165,9 +165,9 @@ not1mm/plugins/ref_ssb.py,sha256=vfS9-mcnbw2znRvU4jh20JqI9BXap8jV65OV5mbCkCk,209
165
165
  not1mm/plugins/stew_perry_topband.py,sha256=D1hekmMbx-i4BhaP2uzOK3OzaVVMMdgcN3RmfweNqHo,15341
166
166
  not1mm/plugins/weekly_rtty.py,sha256=huZszbZsIh4vF3cP80UyPzy3qxIoHdEiT1b6KuvwgYc,20083
167
167
  not1mm/plugins/winter_field_day.py,sha256=JK4r1vfxs7aADR7ZYbjZniz3f5s3_ipSQDZ0GRNWC7I,15222
168
- not1mm-25.1.23.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
169
- not1mm-25.1.23.dist-info/METADATA,sha256=lzLvwahSNXPAMD5QtDB906desmijbfpV8mItXBeknvA,35691
170
- not1mm-25.1.23.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
171
- not1mm-25.1.23.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
172
- not1mm-25.1.23.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
173
- not1mm-25.1.23.dist-info/RECORD,,
168
+ not1mm-25.1.24.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
169
+ not1mm-25.1.24.dist-info/METADATA,sha256=WlFOX3f7E34RBXMEaimuCnoprb_nuuTsLTEp1sBmRJw,35740
170
+ not1mm-25.1.24.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
171
+ not1mm-25.1.24.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
172
+ not1mm-25.1.24.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
173
+ not1mm-25.1.24.dist-info/RECORD,,