mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
get_invalid returns project only if auto sync is turned on
This commit is contained in:
parent
f7304ba26d
commit
00acee01ce
1 changed files with 2 additions and 2 deletions
|
|
@ -35,8 +35,8 @@ class ValidateAutoSyncOff(pyblish.api.ContextPlugin):
|
|||
project_name = avalon.api.Session["AVALON_PROJECT"]
|
||||
query = 'Project where full_name is "{}"'.format(project_name)
|
||||
project = session.query(query).one()
|
||||
|
||||
return project
|
||||
if project["custom_attributes"][CUST_ATTR_AUTO_SYNC]:
|
||||
return project
|
||||
|
||||
@classmethod
|
||||
def repair(cls, context):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue