From 90259297ca60dc8bf0576b2ad9f7b455b1949c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 30 Aug 2016 15:31:08 +0200 Subject: [PATCH] Use project UUID from new property in preferences --- blender_cloud/attract/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blender_cloud/attract/__init__.py b/blender_cloud/attract/__init__.py index 934b6a5..9f3a597 100644 --- a/blender_cloud/attract/__init__.py +++ b/blender_cloud/attract/__init__.py @@ -135,7 +135,7 @@ class AttractOperatorMixin: from .. import pillar, blender prefs = blender.preferences() - project = self.find_project(prefs.project_uuid) + project = self.find_project(prefs.attract_project.project) # FIXME: Eve doesn't seem to handle the $elemMatch projection properly, # even though it works fine in MongoDB itself. As a result, we have to @@ -184,7 +184,7 @@ class AttractShotSubmitNew(AttractOperatorMixin, Operator): 'cut_out': strip.frame_offset_start + strip.frame_final_duration}, 'order': 0, 'node_type': 'shot', - 'project': blender.preferences().project_uuid, + 'project': blender.preferences().attract_project.project, 'user': user_uuid} # Create a Node item with the attract API