mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
settings key in class definition
This commit is contained in:
parent
a27d7d335d
commit
5a39ee349e
1 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ from pype.modules.ftrack import BaseEvent
|
|||
|
||||
|
||||
class NextTaskUpdate(BaseEvent):
|
||||
settings_key = "next_task_update"
|
||||
|
||||
def launch(self, session, event):
|
||||
'''Propagates status from version to task when changed'''
|
||||
|
||||
|
|
@ -56,7 +58,7 @@ class NextTaskUpdate(BaseEvent):
|
|||
|
||||
# Load status mapping from presets
|
||||
event_settings = (
|
||||
project_settings["ftrack"]["events"]["next_task_update"]
|
||||
project_settings["ftrack"]["events"][self.settings_key]
|
||||
)
|
||||
if not event_settings["enabled"]:
|
||||
self.log.debug("Project \"{}\" has disabled {}.".format(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue