[Bf-extensions-cvs] [e61b3586] blender-v2.83-release: BlenderKit: fix spelling mistake

Vilém Duha noreply at git.blender.org
Wed May 27 12:31:30 CEST 2020


Commit: e61b3586c664ed817bccba661973e8adac3f7620
Author: Vilém Duha
Date:   Tue May 12 14:05:35 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rBAe61b3586c664ed817bccba661973e8adac3f7620

BlenderKit: fix spelling mistake

===================================================================

M	blenderkit/__init__.py
M	blenderkit/ratings.py

===================================================================

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



More information about the Bf-extensions-cvs mailing list