Commit 82396a66 authored by Sarah Abrishami's avatar Sarah Abrishami

added a parameter so na's wouldn't be changed to -

parent 315ae932
......@@ -68,9 +68,9 @@ def read_data(puid=None, ruleset=None, cols=[], path=None):
else:
uid = puid
if cols:
req = requests.post(f'{current_app.config["IO"]}/get_data/{uid}', json={'columns': cols})
req = requests.post(f'{current_app.config["IO"]}/get_data/{uid}', json={'columns': cols, 'where': 'rules'})
else:
req = requests.post(f'{current_app.config["IO"]}/get_data/{uid}', json={'form_code': 'all'})
req = requests.post(f'{current_app.config["IO"]}/get_data/{uid}', json={'form_code': 'all', 'where': 'rules'})
return pd.DataFrame(req.json()['data'])
else:
if not path:
......
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