diff --git a/owrx/controllers/services.py b/owrx/controllers/services.py index 1001d6e5..f7fc2ad6 100644 --- a/owrx/controllers/services.py +++ b/owrx/controllers/services.py @@ -37,12 +37,8 @@ class ServiceController(AuthorizationMixin, WebpageController): @staticmethod def renderService(c): # Choose units based on frequency - mode = c["mode"] freq = c["freq"] - if freq is None: - freq = "" - unit = "" - elif freq >= 1000000000: + if freq >= 1000000000: freq = freq / 1000000000 unit = "GHz" elif freq >= 30000000: @@ -55,8 +51,7 @@ class ServiceController(AuthorizationMixin, WebpageController): unit = "Hz" # Removing trailing zeros, converting mode to upper case freq = re.sub(r"\.?0+$", "", "{0}".format(freq)) - mode = "???" if mode is None else mode.upper() # Format row return "