From e61b3586c664ed817bccba661973e8adac3f7620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= Date: Tue, 12 May 2020 14:05:35 +0200 Subject: BlenderKit: fix spelling mistake --- blenderkit/__init__.py | 2 +- blenderkit/ratings.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py index ce9be452..d56390a3 100644 --- a/blenderkit/__init__.py +++ b/blenderkit/__init__.py @@ -264,7 +264,7 @@ def asset_type_callback(self, context): items = ( ('MODEL', 'Upload Model', 'Upload a model to BlenderKit', 'OBJECT_DATAMODE', 0), # ('SCENE', 'SCENE', 'Browse scenes', 'SCENE_DATA', 1), - ('MATERIAL', 'Uplaod Material', 'Upload a material to BlenderKit', 'MATERIAL', 2), + ('MATERIAL', 'Upload Material', 'Upload a material to BlenderKit', 'MATERIAL', 2), # ('TEXTURE', 'Texture', 'Browse textures', 'TEXTURE', 3), ('BRUSH', 'Upload Brush', 'Upload a brush to BlenderKit', 'BRUSH_DATA', 3) ) diff --git a/blenderkit/ratings.py b/blenderkit/ratings.py index fdbdea79..2a6b95b0 100644 --- a/blenderkit/ratings.py +++ b/blenderkit/ratings.py @@ -55,7 +55,7 @@ def pretty_print_POST(req): )) -def uplaod_rating_thread(url, ratings, headers): +def upload_rating_thread(url, ratings, headers): ''' Upload rating thread function / disconnected from blender data.''' utils.p('upload rating', url, ratings) for rating_name, score in ratings: @@ -75,17 +75,17 @@ def uplaod_rating_thread(url, ratings, headers): def send_rating_to_thread_quality(url, ratings, headers): '''Sens rating into thread rating, main purpose is for tasks_queue. One function per property to avoid lost data due to stashing.''' - thread = threading.Thread(target=uplaod_rating_thread, args=(url, ratings, headers)) + thread = threading.Thread(target=upload_rating_thread, args=(url, ratings, headers)) thread.start() def send_rating_to_thread_work_hours(url, ratings, headers): '''Sens rating into thread rating, main purpose is for tasks_queue. One function per property to avoid lost data due to stashing.''' - thread = threading.Thread(target=uplaod_rating_thread, args=(url, ratings, headers)) + thread = threading.Thread(target=upload_rating_thread, args=(url, ratings, headers)) thread.start() -def uplaod_review_thread(url, reviews, headers): +def upload_review_thread(url, reviews, headers): r = rerequests.put(url, data=reviews, verify=True, headers=headers) # except requests.exceptions.RequestException as e: @@ -150,7 +150,7 @@ def upload_rating(asset): if bkit_ratings.rating_work_hours > 0.1: ratings.append(('working_hours', round(bkit_ratings.rating_work_hours, 1))) - thread = threading.Thread(target=uplaod_rating_thread, args=(url, ratings, headers)) + thread = threading.Thread(target=upload_rating_thread, args=(url, ratings, headers)) thread.start() url = paths.get_api_url() + 'assets/' + asset['asset_data']['id'] + '/review' @@ -160,7 +160,7 @@ def upload_rating(asset): 'reviewTextProblems': bkit_ratings.rating_problems, } if not (bkit_ratings.rating_compliments == '' and bkit_ratings.rating_compliments == ''): - thread = threading.Thread(target=uplaod_review_thread, args=(url, reviews, headers)) + thread = threading.Thread(target=upload_review_thread, args=(url, reviews, headers)) thread.start() # the info that the user rated an item is stored in the scene -- cgit v1.2.3