mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
remove loading clockify presets in ftrack event subprocess
This commit is contained in:
parent
a81923aeee
commit
467aa65aa7
1 changed files with 1 additions and 17 deletions
|
|
@ -9,7 +9,7 @@ from pype.modules.ftrack.ftrack_server.lib import (
|
|||
SocketSession, ProcessEventHub, TOPIC_STATUS_SERVER
|
||||
)
|
||||
import ftrack_api
|
||||
from pype.api import Logger, config
|
||||
from pype.api import Logger
|
||||
|
||||
log = Logger().get_logger("Event processor")
|
||||
|
||||
|
|
@ -56,32 +56,16 @@ def register(session):
|
|||
|
||||
|
||||
def clockify_module_registration():
|
||||
module_name = "Clockify"
|
||||
|
||||
menu_items = config.get_presets()["tray"]["menu_items"]
|
||||
if not menu_items["item_usage"][module_name]:
|
||||
return
|
||||
|
||||
api_key = os.environ.get("CLOCKIFY_API_KEY")
|
||||
if not api_key:
|
||||
log.warning("Clockify API key is not set.")
|
||||
return
|
||||
|
||||
workspace_name = os.environ.get("CLOCKIFY_WORKSPACE")
|
||||
if not workspace_name:
|
||||
workspace_name = (
|
||||
menu_items
|
||||
.get("attributes", {})
|
||||
.get(module_name, {})
|
||||
.get("workspace_name", {})
|
||||
)
|
||||
|
||||
if not workspace_name:
|
||||
log.warning("Clockify Workspace is not set.")
|
||||
return
|
||||
|
||||
os.environ["CLOCKIFY_WORKSPACE"] = workspace_name
|
||||
|
||||
from pype.modules.clockify.constants import CLOCKIFY_FTRACK_SERVER_PATH
|
||||
|
||||
current = os.environ.get("FTRACK_EVENTS_PATH") or ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue