get_invalid returns project only if auto sync is turned on

This commit is contained in:
iLLiCiTiT 2020-07-17 16:15:10 +02:00
parent f7304ba26d
commit 00acee01ce

View file

@ -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):