diff options
Diffstat (limited to 'blenderkit/upload.py')
-rw-r--r-- | blenderkit/upload.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/blenderkit/upload.py b/blenderkit/upload.py index 6a512e4a..15c0bf83 100644 --- a/blenderkit/upload.py +++ b/blenderkit/upload.py @@ -445,6 +445,7 @@ def get_upload_data(self, context, asset_type): upload_data["category"] = props.subcategory upload_data["license"] = props.license upload_data["isFree"] = props.is_free + upload_data["isPrivate"] = props.is_private upload_data["token"] = user_preferences.api_key if props.asset_base_id != '': @@ -570,6 +571,7 @@ def start_upload(self, context, asset_type, as_new, metadata_only): try: r = requests.post(url, json=json_metadata, headers=headers, verify=True) # files = files, props.upload_state = 'uploaded metadata' + utils.p(r.text) except requests.exceptions.RequestException as e: print(e) props.upload_state = str(e) @@ -592,6 +594,7 @@ def start_upload(self, context, asset_type, as_new, metadata_only): props.uploading = False return {'CANCELLED'} + # props.upload_state = 'step 1' if metadata_only: props.uploading = False |