mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
start stop timer plugins use settings from context
This commit is contained in:
parent
eeda206278
commit
55dfb0817c
2 changed files with 2 additions and 5 deletions
|
|
@ -3,8 +3,6 @@ import requests
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.api import get_system_settings
|
||||
|
||||
|
||||
class StopTimer(pyblish.api.ContextPlugin):
|
||||
label = "Stop Timer"
|
||||
|
|
@ -12,7 +10,7 @@ class StopTimer(pyblish.api.ContextPlugin):
|
|||
hosts = ["*"]
|
||||
|
||||
def process(self, context):
|
||||
modules_settings = get_system_settings()["modules"]
|
||||
modules_settings = context.data["system_settings"]["modules"]
|
||||
if modules_settings["timers_manager"]["disregard_publishing"]:
|
||||
webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL")
|
||||
rest_api_url = "{}/timers_manager/stop_timer".format(webserver_url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue