Merge pull request #1385 from ynput/enhancement/webactions-settings-variant

Launcher tool: Pass variant to actions list
This commit is contained in:
Jakub Trllo 2025-07-24 13:58:56 +02:00 committed by GitHub
commit 42d39877e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -399,7 +399,11 @@ class ActionsModel:
return cache.get_data()
try:
response = ayon_api.post("actions/list", **request_data)
# 'variant' query is supported since AYON backend 1.10.4
query = urlencode({"variant": self._variant})
response = ayon_api.post(
f"actions/list?{query}", **request_data
)
response.raise_for_status()
except Exception:
self.log.warning("Failed to collect webactions.", exc_info=True)