W0105 linting - remove display_decoded
display_decoded is an unused relic of the original decode method, and throws a W0105 warning. removing this function completely Signed-off-by: Corey Shields <cshields@gmail.com>merge-requests/399/head
parent
f90fe277d5
commit
8b6410ba2c
|
@ -2,7 +2,6 @@
|
|||
from __future__ import absolute_import, division, print_function, \
|
||||
unicode_literals
|
||||
|
||||
import json
|
||||
import logging
|
||||
from os import path
|
||||
from uuid import uuid4
|
||||
|
@ -298,19 +297,6 @@ class DemodData(models.Model):
|
|||
def __str__(self):
|
||||
return 'data-for-{0}'.format(self.satellite.norad_cat_id)
|
||||
|
||||
# TODO: this is a relic of the first attempt at payload decoding and
|
||||
# should be refactored out or changed to actually fetch the decoded
|
||||
# frame (from influx?)
|
||||
def display_decoded(self):
|
||||
"""Returns the contents of payload_decoded
|
||||
|
||||
:returns: json-formatted contents of payload_decoded
|
||||
"""
|
||||
try:
|
||||
json.dumps(self.payload_decoded)
|
||||
except Exception:
|
||||
'{}'
|
||||
|
||||
def display_frame(self):
|
||||
"""Returns the contents of the saved frame file for this DemodData
|
||||
|
||||
|
|
Loading…
Reference in New Issue