mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fixed hound's comments
This commit is contained in:
parent
962d0783b0
commit
8bf970e8b9
4 changed files with 13 additions and 7 deletions
|
|
@ -64,7 +64,7 @@ class CollectKitsuEntities(pyblish.api.ContextPlugin):
|
|||
raise ValueError(
|
||||
"Task type {} not found in Kitsu!".format(task_name)
|
||||
)
|
||||
|
||||
|
||||
kitsu_task = gazu.task.get_task_by_name(
|
||||
entity, kitsu_task_type
|
||||
)
|
||||
|
|
|
|||
|
|
@ -101,7 +101,8 @@ class Listener:
|
|||
self.event_client, "sequence:delete", self._delete_sequence
|
||||
)
|
||||
|
||||
gazu.events.add_listener(self.event_client, "shot:new", self._new_shot)
|
||||
gazu.events.add_listener(
|
||||
self.event_client, "shot:new", self._new_shot)
|
||||
gazu.events.add_listener(
|
||||
self.event_client, "shot:update", self._update_shot
|
||||
)
|
||||
|
|
@ -109,7 +110,8 @@ class Listener:
|
|||
self.event_client, "shot:delete", self._delete_shot
|
||||
)
|
||||
|
||||
gazu.events.add_listener(self.event_client, "task:new", self._new_task)
|
||||
gazu.events.add_listener(
|
||||
self.event_client, "task:new", self._new_task)
|
||||
gazu.events.add_listener(
|
||||
self.event_client, "task:update", self._update_task
|
||||
)
|
||||
|
|
@ -515,7 +517,8 @@ class Listener:
|
|||
if asset_doc:
|
||||
asset_tasks = asset_doc["data"].get("tasks")
|
||||
task_type_name = task["task_type"]["name"]
|
||||
asset_tasks[task_type_name] = {"type": task_type_name, "zou": task}
|
||||
asset_tasks[task_type_name] = {
|
||||
"type": task_type_name, "zou": task}
|
||||
self.dbcon.update_one(
|
||||
{"_id": asset_doc["_id"]},
|
||||
{"$set": {"data.tasks": asset_tasks}}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,8 @@ def update_op_assets(
|
|||
if not item_doc: # Create asset
|
||||
op_asset = create_op_asset(item)
|
||||
insert_result = dbcon.insert_one(op_asset)
|
||||
item_doc = get_asset_by_id(project_name, insert_result.inserted_id)
|
||||
item_doc = get_asset_by_id(
|
||||
project_name, insert_result.inserted_id)
|
||||
|
||||
# Update asset
|
||||
item_data = deepcopy(item_doc["data"])
|
||||
|
|
@ -339,7 +340,8 @@ def write_project_to_op(project: dict, dbcon: AvalonMongoDB) -> UpdateOne:
|
|||
)
|
||||
|
||||
|
||||
def sync_all_projects(login: str, password: str, ignore_projects: list = None):
|
||||
def sync_all_projects(
|
||||
login: str, password: str, ignore_projects: list = None):
|
||||
"""Update all OP projects in DB with Zou data.
|
||||
|
||||
Args:
|
||||
|
|
|
|||
|
|
@ -82,7 +82,8 @@ def sync_zou_from_op_project(
|
|||
f"x{project_doc['data']['resolutionHeight']}",
|
||||
}
|
||||
)
|
||||
gazu.project.update_project_data(zou_project, data=project_doc["data"])
|
||||
gazu.project.update_project_data(
|
||||
zou_project, data=project_doc["data"])
|
||||
gazu.project.update_project(zou_project)
|
||||
|
||||
asset_types = gazu.asset.all_asset_types()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue