Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2020-05-12 15:05:35 +0300
committerVilém Duha <vilda.novak@gmail.com>2020-05-27 13:27:05 +0300
commite61b3586c664ed817bccba661973e8adac3f7620 (patch)
treeae073b7fdfa53db775ff9ff0c43a6bd1fe9e6cb2
parentdee3d138e3d534d9ad7cf81c2dff6e65acdc3e94 (diff)
BlenderKit: fix spelling mistake
-rw-r--r--blenderkit/__init__.py2
-rw-r--r--blenderkit/ratings.py12
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