Remove some debugging code

This commit is contained in:
2022-09-06 12:18:58 +01:00
parent e90c151787
commit 9774da0d00
3 changed files with 8 additions and 9 deletions

View File

@@ -1,7 +1,9 @@
from core.lib.threshold import annotate_num_chans, annotate_num_users, annotate_online
from django.conf import settings
from datetime import datetime
from django.conf import settings
from core.lib.threshold import annotate_num_chans, annotate_num_users, annotate_online
def annotate_results(results_parsed):
"""
@@ -147,7 +149,9 @@ def parse_results(results):
if isinstance(element["ts"], str):
ts = element["ts"]
else:
ts = datetime.utcfromtimestamp(element["ts"]).strftime('%Y-%m-%dT%H:%M:%S')
ts = datetime.utcfromtimestamp(element["ts"]).strftime(
"%Y-%m-%dT%H:%M:%S"
)
ts_spl = ts.split("T")
date = ts_spl[0]
time = ts_spl[1]
@@ -161,4 +165,4 @@ def parse_results(results):
else:
element["time"] = time
results_parsed.append(element)
return results_parsed
return results_parsed