summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-09 09:59:21 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-09 09:59:21 +0100
commitdcf472bbd3d26072b03924b2b0d1592e964d6392 (patch)
tree6251d4ec2163e9eb9e051cbebb9f313a96807f7e
parentb9b9053e83bcfea7f0c4cc30843bfdc7f67b85d7 (diff)
loose type checking once again
-rw-r--r--cli/app/utils/cortex_utils.py4
1 files changed, 2 insertions, 2 deletions
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()