Skip to content

Commit

Permalink
Merge pull request #67 from mbridak/66-bandmappy-now-crashes-on-ctrl-…
Browse files Browse the repository at this point in the history
…g-from-main

crash fix, bandmap.py, string was presented as tuple.
  • Loading branch information
mbridak authored Jan 22, 2024
2 parents 9045f80 + 2c1404a commit fc7d02e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions not1mm/bandmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit fc7d02e

Please sign in to comment.