mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
reset cache of attributes on server when enums are updated
This commit is contained in:
parent
769bcbaf2e
commit
72aeb63ef9
1 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import json
|
|||
import copy
|
||||
|
||||
from ayon_server.addons import BaseServerAddon, AddonLibrary
|
||||
from ayon_server.entities.core import attribute_library
|
||||
from ayon_server.lib.postgres import Postgres
|
||||
|
||||
from .version import __version__
|
||||
|
|
@ -318,6 +319,9 @@ class ApplicationsAddon(BaseServerAddon):
|
|||
tools_attrib_name,
|
||||
)
|
||||
|
||||
# Reset attributes cache on server
|
||||
attribute_library.load()
|
||||
|
||||
async def on_settings_changed(self, *args, **kwargs):
|
||||
_ = args, kwargs
|
||||
await self.update_enums()
|
||||
Loading…
Add table
Add a link
Reference in a new issue