mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-21 14:57:42 +00:00
Partial fix for mypy issues
This commit is contained in:
@@ -213,9 +213,9 @@ class TelnetServer:
|
||||
and everything must be renderable in ASCII."""
|
||||
|
||||
de_call = f"{callinfo.Callinfo.get_homecall(spot.de_call)[:6] + ':' if spot.de_call else '???:'!s:<7}"
|
||||
frequency = f"{(spot.freq / 1000.0):10.1f}"
|
||||
frequency = f"{((spot.freq or 0) / 1000.0):10.1f}"
|
||||
dx_call = f"{spot.dx_call!s:<12}"
|
||||
comment = f"{spot.comment.encode('ascii', errors='ignore').decode()[:29]:<30}"
|
||||
comment = f"{(spot.comment or '').encode('ascii', errors='ignore').decode()[:29]:<30}"
|
||||
if spot.time:
|
||||
timestamp = datetime.fromtimestamp(spot.time, tz=pytz.utc).strftime("%H%M") + "Z"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user