Yesterday some artists started noticing that certain code wasn’t working anymore. In a very simplified way, it looks like this:
for element in sg.find('Element', [['shots.Shot.sg_episode.CustomEntity01.code', 'is', 'ep01']], ['shots.Shot.sg_status_list']): print element['shots.Shot.sg_status_list']
Unsurprisingly for me, it raises a
KeyError. I didn’t write this tool— I’ve always thought querying through a multi-entity field using dot notation never works because the relationship isn’t 1:1 (i.e. an Element could be linked to more than one Shot), but the artists insist that this was working earlier this month.
I’ve tested it with Python API versions 3.0.32 (which we were using in March) and 3.0.37 (which we’re using now)— no dice. Is it possible that an update to Shotgun itself has altered this behaviour?
Thanks in advance,