From 2c1404a9e803496b7883b37812bf867d2fbf5a23 Mon Sep 17 00:00:00 2001 From: mbridak Date: Mon, 22 Jan 2024 12:28:32 -0800 Subject: [PATCH] crash fix, bandmap.py, string was presented as tuple. --- not1mm/bandmap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/not1mm/bandmap.py b/not1mm/bandmap.py index b6bfabe4..84c5f48f 100755 --- a/not1mm/bandmap.py +++ b/not1mm/bandmap.py @@ -169,8 +169,8 @@ def addspot(self, spot: dict) -> None: Parameters ---------- spot: Dict - A dict of the form: {'ts': datetime, 'callsign': str, 'freq': float, 'band': str,'mode': str,'spotter': str, - 'comment': str} + A dict of the form: {'ts': datetime, 'callsign': str, 'freq': float, + 'band': str,'mode': str,'spotter': str, 'comment': str} Returns ------- @@ -279,8 +279,8 @@ def get_matching_spot(self, dx: str, start: float, end: float) -> dict: """ self.cursor.execute( - f"select * from spots where freq >= {start} ", - f"and freq <= {end} and callsign like '%{dx}%';", + f"select * from spots where freq >= {start} " + f"and freq <= {end} and callsign like '%{dx}%';" ) return self.cursor.fetchone()