Jump to content

Thumbnail missing in query projection


Fernando

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...