Refactor - faster resolution of query

This commit is contained in:
Petr Kalis 2022-04-08 12:13:47 +02:00
parent 9f9f47145b
commit 7f0b4710f2

View file

@ -850,7 +850,7 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
active_site = sync_settings["config"]["active_site"]
# for Tray running background process
if active_site == get_local_site_id() and active_site not in sites:
if active_site not in sites and active_site == get_local_site_id():
sites.append(active_site)
return sites