Remove some debugging code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user