diff --git a/django_publicdb/api/datastore.py b/django_publicdb/api/datastore.py index 8941ec0e4..9b4e7f033 100644 --- a/django_publicdb/api/datastore.py +++ b/django_publicdb/api/datastore.py @@ -39,7 +39,7 @@ def retrieve_traces(node, timestamp, nanoseconds, raw=False): baselines = event['baseline'] traces_str = [zlib.decompress(node.blobs[trace_idx]).split(',') for trace_idx in traces_idx if trace_idx != -1] - traces = [[int(val) if baseline is -999 or raw else int(val) - baseline + traces = [[int(val) if baseline == -999 or raw else int(val) - baseline for val in trace_str if val != ''] for baseline, trace_str in zip(baselines, traces_str)]