diff options
Diffstat (limited to 'blenderkit/ratings.py')
-rw-r--r-- | blenderkit/ratings.py | 12 |
1 files changed, 6 insertions, 6 deletions
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 |