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 ...@@ -56,11 +56,10 @@ def print_scheduledpass_summary(scheduledpasses, ground_station_id, printer=prin
"Priority | Transmitter UUID | Mode | Satellite name ") "Priority | Transmitter UUID | Mode | Satellite name ")
for satpass in sorted(scheduledpasses, key=lambda satpass: satpass['tr']): for satpass in sorted(scheduledpasses, key=lambda satpass: satpass['tr']):
printer( printer("%4d | %3s | %05d | %s | %s | %s | %3.0f | %4.6f | %s | %-10s | %s" %
"%4d | %3s | %05d | %s | %s | %s | %3.0f | %4.6f | %s | %-10s | %s" % (ground_station_id, 'Y' if satpass['scheduled'] else 'N',
(ground_station_id, 'Y' if satpass['scheduled'] else 'N', int( int(satpass['satellite']['id']), satpass['tr'].strftime("%Y-%m-%dT%H:%M:%S"),
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],
satpass['ts'].strftime("%Y-%m-%dT%H:%M:%S"), float(satpass['altt']) if satpass['altt'] else 0., satpass.get('priority', 0.0),
str(satpass['td']).split(".")[0], float(satpass['altt']) if satpass['altt'] satpass['transmitter'].get('uuid', ''), satpass['transmitter'].get(
else 0., satpass.get('priority', 0.0), satpass['transmitter'].get('uuid', ''), 'mode', ''), satpass['satellite']['name'].rstrip()))
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