Remus Avram Posted November 11, 2017 Report Share Posted November 11, 2017 If I create a new version and then I query the asset again, then the new version is not included in the asset['versions']. Example: asset = session.query("Asset where versions.task.id is '{0}'".format(task['id'])).one() print len(asset['version']) session.create('AssetVersion', {'asset': asset, 'task': task, 'version': 13, 'status': status, } ) session.commit() asset = session.query("Asset where versions.task.id is '{0}'".format(task['id'])).one() print len(asset['version']) ------- Returns 2 2 Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted November 13, 2017 Report Share Posted November 13, 2017 Hi Remus, this should be related to: https://forum.ftrack.com/topic/598-manage-roles/ We're working on a fix here: https://bitbucket.org/ftrack/ftrack-python-api/pull-requests/186/backlog-collections-are-not-merged/diff Link to comment Share on other sites More sharing options...
Remus Avram Posted November 13, 2017 Author Report Share Posted November 13, 2017 Thanks @Mattias Lagergren for the quick answer. Right! Related issue. Different entity. Nice to hear that you are working on a fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.