From dcf472bbd3d26072b03924b2b0d1592e964d6392 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 9 Jan 2020 09:59:21 +0100 Subject: loose type checking once again --- cli/app/utils/cortex_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/app/utils') diff --git a/cli/app/utils/cortex_utils.py b/cli/app/utils/cortex_utils.py index 5e1e659..947c7e1 100644 --- a/cli/app/utils/cortex_utils.py +++ b/cli/app/utils/cortex_utils.py @@ -69,7 +69,7 @@ def fetch_file(url, fn, **kwargs): return size def upload_fp_to_cortex(opt_folder_id, fp): - """Upload a open file/BytesIO object""" + """Upload an open file/BytesIO object""" files = { 'file': fp } @@ -80,7 +80,7 @@ def upload_fp_to_cortex(opt_folder_id, fp): 'activity': 'invert', 'datatype': 'image', } - url = os.path.join(api_url('folder'), opt_folder_id, 'upload/') + url = os.path.join(api_url('folder'), str(opt_folder_id), 'upload/') r = requests.post(url, files=files, data=data) return None if resp.status_code != 200 else resp.json() -- cgit v1.2.3-70-g09d2