diff options
Diffstat (limited to 'gn3/api/correlation.py')
-rw-r--r-- | gn3/api/correlation.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/api/correlation.py b/gn3/api/correlation.py index 7eb7cd6..f2ffe8a 100644 --- a/gn3/api/correlation.py +++ b/gn3/api/correlation.py @@ -1,4 +1,5 @@ """Endpoints for running correlations""" +import json import sys from functools import reduce @@ -110,7 +111,7 @@ def partial_correlation(): return reduce(__field_errors__(request_data), fields, errors) - args = request.get_json() + args = json.loads(request.get_json()) request_errors = __errors__( args, ("primary_trait", "control_traits", "target_db", "method")) if request_errors: |