not1mm 24.10.22__py3-none-any.whl → 24.10.23__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/bandmap.py CHANGED
@@ -160,9 +160,13 @@ class Database:
160
160
  Nothing.
161
161
  """
162
162
  try:
163
- if erase:
163
+ if spot.get("comment", None) == "MARKED":
164
+ delete_call = "delete from spots where callsign = ?;"
165
+ self.cursor.execute(delete_call, (spot.get("callsign"),))
166
+ self.db.commit()
167
+ elif erase:
164
168
  delete_call = (
165
- "delete from spots where callsign = ? and ts < DATETIME();"
169
+ "delete from spots where callsign = ? AND comment != 'MARKED';"
166
170
  )
167
171
  self.cursor.execute(delete_call, (spot.get("callsign"),))
168
172
  self.db.commit()
@@ -415,18 +419,8 @@ class BandMapWindow(QDockWidget):
415
419
  if packet.get("cmd", "") == "SPOTDX":
416
420
  dx = packet.get("dx", "")
417
421
  freq = packet.get("freq", 0.0)
418
- the_UTC_time = datetime.now(timezone.utc).isoformat(" ")[:19].split()[1]
419
- spot = {
420
- "ts": "2099-01-01 " + the_UTC_time,
421
- "callsign": dx,
422
- "freq": freq / 1000,
423
- "band": self.currentBand.name,
424
- "mode": "DX",
425
- "spotter": platform.node(),
426
- "comment": "MARKED",
427
- }
428
- self.spots.addspot(spot, erase=False)
429
- self.update_stations()
422
+ spotdx = f"dx {dx} {freq}"
423
+ self.send_command(spotdx)
430
424
  return
431
425
  if packet.get("cmd", "") == "MARKDX":
432
426
  dx = packet.get("dx", "")
not1mm/lib/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """It's the version"""
2
2
 
3
- __version__ = "24.10.22"
3
+ __version__ = "24.10.23"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: not1mm
3
- Version: 24.10.22
3
+ Version: 24.10.23
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
@@ -232,6 +232,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's.
232
232
 
233
233
  ## Recent Changes (Polishing the Turd)
234
234
 
235
+ - [24-10-23] Remove duplicate marked calls in the bandmap.
235
236
  - [24-10-22] Added ESM to RAC Canada Day. Added French REF.
236
237
  - [24-10-21] Scaled back the hits returned from the check window from 25 to 20. Seems less resource hungry now.
237
238
  - [24-10-20-1] ReWrote how the widgets interact. I porbably broke a thing or two. Let me know.
@@ -1,6 +1,6 @@
1
1
  not1mm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  not1mm/__main__.py,sha256=J0Jgm4Q0tXthiRw3VLfROKQSdK66olZNUJmr963ExQ8,135049
3
- not1mm/bandmap.py,sha256=UQVT_YIL0aXhYm6hZxTzjDL1dSIsCF07opnlO2B1_rw,30840
3
+ not1mm/bandmap.py,sha256=uCaM07IWyC22LFO3R1_ViaW7SBXjIaoJ-ypglJIKddg,30670
4
4
  not1mm/checkwindow.py,sha256=F6hNCbVSLG2PPY2afgmwlBWeqr1Uj4-n__AivDLVQ_0,9670
5
5
  not1mm/fsutils.py,sha256=ukHKxKTeNKxKwqRaJjtzRShL4X5Xl0jRBbADyy3Ifp8,1701
6
6
  not1mm/logwindow.py,sha256=TvpzQTNB92hISlUO3iWBqtlPmlebdhOkAArx0DNGcOs,43966
@@ -114,7 +114,7 @@ not1mm/lib/plugin_common.py,sha256=TbFUbftjELFt4QRdsjSHbqnXSngZOlSwlCTClqosDXA,9
114
114
  not1mm/lib/select_contest.py,sha256=WsptLuwkouIHeocJL3oZ6-eUfEnhpwdc-x7eMZ_TIVM,359
115
115
  not1mm/lib/settings.py,sha256=7_JFDSKPOd35Gwzqhrbed4EfrlYUm7AEnz2xBRioc-g,13280
116
116
  not1mm/lib/super_check_partial.py,sha256=hwT2NRwobu0PLDyw6ltmbmcAtGBD02CKGFbgGWjXMqA,2334
117
- not1mm/lib/version.py,sha256=dmYxdln0AJPTX0xSww6F0-Z7M59diqYW6FIIqRRgV44,49
117
+ not1mm/lib/version.py,sha256=h6Nrz1mjz1KQh8T9_5DX4Md1qunZZtYneo3kbFgDpOk,49
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
@@ -159,9 +159,9 @@ not1mm/plugins/ref_ssb.py,sha256=qzhojE-rL7NaMkb6V2XYwZTlx_GDPw3FXlDivGM4oBk,200
159
159
  not1mm/plugins/stew_perry_topband.py,sha256=CKBQbYl4ETxhXJd2dma4fg_C5pag_s7Nf61SCztZtqE,10668
160
160
  not1mm/plugins/weekly_rtty.py,sha256=ipgY-KlKlEHafnBg-_AFk9KhiXkGTvb4ENoezIeD7jU,18185
161
161
  not1mm/plugins/winter_field_day.py,sha256=nPuPxdK1FimPsHk-uz_3MA4cBqBp6WcwApk7PZwWeWg,13579
162
- not1mm-24.10.22.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
163
- not1mm-24.10.22.dist-info/METADATA,sha256=i4rRIdY6tLeST9QP2wjfGtY8tDg9ORPAtn3j6pbI-Uo,34978
164
- not1mm-24.10.22.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
165
- not1mm-24.10.22.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
166
- not1mm-24.10.22.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
167
- not1mm-24.10.22.dist-info/RECORD,,
162
+ not1mm-24.10.23.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
163
+ not1mm-24.10.23.dist-info/METADATA,sha256=bh-Ds6Nil_yzbJ_sqiD5-TJNIHC9MDrXCC0jlMzEQcM,35037
164
+ not1mm-24.10.23.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
165
+ not1mm-24.10.23.dist-info/entry_points.txt,sha256=pMcZk_0dxFgLkcUkF0Q874ojpwOmF3OL6EKw9LgvocM,47
166
+ not1mm-24.10.23.dist-info/top_level.txt,sha256=0YmTxEcDzQlzXub-lXASvoLpg_mt1c2thb5cVkDf5J4,7
167
+ not1mm-24.10.23.dist-info/RECORD,,