don't modify the data dict param · oopoopoop/python-api@9c79f66 · GitHub
Skip to content

Commit 9c79f66

Browse files
author
KP
committed
don't modify the data dict param
always return thumbnail url when uploaded instead of id. data parameter shouldn't be modified since it's a reference to the dict passed in from the client. A deep copy isn't necessary so just use copy(). thumbnail ids are pretty useless. urls are more standard so let's just return those. Since we're providing a thumbnail in create()/update() return data for them automatically to match the behavior of other fields.
1 parent bb69bd3 commit 9c79f66

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

shotgun_api3/shotgun.py

Lines changed: 4 additions & 12 deletions

tests/test_api.py

Lines changed: 0 additions & 3 deletions

0 commit comments

Comments
 (0)