mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
removed unnecessary db queries
This commit is contained in:
parent
f38327a25f
commit
2de402ad67
1 changed files with 0 additions and 6 deletions
|
|
@ -45,9 +45,6 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
|
|||
|
||||
presets = config.get_presets()
|
||||
|
||||
project = io.find_one({"type": "project"})
|
||||
context.data["project"] = project
|
||||
|
||||
# get json file context
|
||||
input_json_path = os.environ.get("SAPUBLISH_INPATH")
|
||||
|
||||
|
|
@ -59,9 +56,6 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
|
|||
self.family = in_data["family"]
|
||||
self.families = ["ftrack"]
|
||||
self.family_preset_key = in_data["family_preset_key"]
|
||||
asset = io.find_one({"type": "asset", "name": self.asset_name})
|
||||
context.data["asset"] = asset
|
||||
|
||||
# exception for editorial
|
||||
if self.family_preset_key in ["editorial", "psd_batch"]:
|
||||
in_data_list = self.multiple_instances(context, in_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue