Fernando Posted September 5, 2023 Report Share Posted September 5, 2023 Hello, We have encountered a small bug when querying the thumbnail of an object in a projection, for example: 'select parent.name, parent.thumbnail_url, status.name, name from Task where parent.parent.name is "100 MAP" ' The parent.thumbnail_url will throw an error: ftrack_api.exception.ServerError: Server reported error: AttributeError(type object 'Context' has no attribute 'thumbnail_url') Even though the follozing works in our case (the parent of the task is a shot that has a thumbnail): task['parent']['thumbnail_url']['url'] It would be cool to directly get the thumbnail_url in our initial query, is there a reason why this doesn't work? Cheers, Fernando Link to comment Share on other sites More sharing options...
Fernando Posted September 12, 2023 Author Report Share Posted September 12, 2023 I got a reply from Erik, and I'll post it here for if anyone else needs it: The solution is to use 'ancestors.thumbnail_id' instead of 'parent.thumbnail_id' in the projection Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now