linting R0101
too-many-nested-blocks - pulled a break point out for utils.py/decode_data to get rid of a nested block Signed-off-by: Corey Shields <cshields@gmail.com>merge-requests/399/head
parent
389194b076
commit
3ce647e374
|
@ -188,7 +188,9 @@ def decode_data(norad, period=None):
|
|||
otherwise attempt to decode everything
|
||||
"""
|
||||
sat = Satellite.objects.get(norad_cat_id=norad)
|
||||
if sat.has_telemetry_decoders:
|
||||
if not sat.has_telemetry_decoders:
|
||||
return
|
||||
|
||||
now = datetime.utcnow()
|
||||
if period:
|
||||
time_period = now - timedelta(hours=4)
|
||||
|
|
Loading…
Reference in New Issue