ynput / ayon-python-api

Apache License 2.0
9 stars 3 forks source link

get_versions fails when specifying fields=['data'] #101

Closed sjt-rvx closed 11 months ago

sjt-rvx commented 11 months ago

If I run (with v0.4.3)

ayon_api.get_versions('project', version_ids=['the_id'], fields=['data']) (to get the arbitrary data key)

An exception is raised:

 File "ayon-launcher/.venv/lib/python3.9/site-packages/ayon_api/server_api.py", line 4400, in get_versions
    if active is not None and version["active"] is not active:

Running get_versions wihout fields=['data'] works (however the 'data' key is missing then :) )