Commit 0f99f1d1 authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixing JSON syntax error related to NaNs

parent 0e855d3c
......@@ -209,7 +209,7 @@ class AnalyticTask(Task, metaclass=abc.ABCMeta):
# NaN is invalid JSON and JS can't parse it. null on the other hand...
result = re.sub(r': NaN', ': null', result)
result = re.sub(r'NaN', 'null', result)
return result
def run(self, session_data_tasks: List[str],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment