Commit 047c6b66 authored by Ansgar Schmidt's avatar Ansgar Schmidt 🚀
Browse files

Fix yapf finding


Signed-off-by: Ansgar Schmidt's avatarAnsgar Schmidt <ansgar.schmidt@gmx.net>
parent 59170e65
Pipeline #229145716 passed with stage
in 1 minute and 6 seconds
......@@ -56,11 +56,10 @@ def print_scheduledpass_summary(scheduledpasses, ground_station_id, printer=prin
"Priority | Transmitter UUID | Mode | Satellite name ")
for satpass in sorted(scheduledpasses, key=lambda satpass: satpass['tr']):
printer(
"%4d | %3s | %05d | %s | %s | %s | %3.0f | %4.6f | %s | %-10s | %s" %
(ground_station_id, 'Y' if satpass['scheduled'] else 'N', int(
satpass['satellite']['id']), satpass['tr'].strftime("%Y-%m-%dT%H:%M:%S"),
satpass['ts'].strftime("%Y-%m-%dT%H:%M:%S"),
str(satpass['td']).split(".")[0], float(satpass['altt']) if satpass['altt']
else 0., satpass.get('priority', 0.0), satpass['transmitter'].get('uuid', ''),
satpass['transmitter'].get('mode', ''), satpass['satellite']['name'].rstrip()))
printer("%4d | %3s | %05d | %s | %s | %s | %3.0f | %4.6f | %s | %-10s | %s" %
(ground_station_id, 'Y' if satpass['scheduled'] else 'N',
int(satpass['satellite']['id']), satpass['tr'].strftime("%Y-%m-%dT%H:%M:%S"),
satpass['ts'].strftime("%Y-%m-%dT%H:%M:%S"), str(satpass['td']).split(".")[0],
float(satpass['altt']) if satpass['altt'] else 0., satpass.get('priority', 0.0),
satpass['transmitter'].get('uuid', ''), satpass['transmitter'].get(
'mode', ''), satpass['satellite']['name'].rstrip()))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment