1
0
Fork 0

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
Corey Shields 2019-07-13 14:27:57 -04:00
parent f90fe277d5
commit 8b6410ba2c
2 changed files with 0 additions and 15 deletions

View File

@ -17,7 +17,6 @@ disable=
R0914,
R0915,
R1705,
W0105,
W0107,
W0110,
W0150,

View File

@ -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