Skip to content

Commit 70b4988

Browse files
committed
fixed typo and reverted download_attachment url
1 parent 968fe1d commit 70b4988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shotgun_api3/shotgun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def update(self, entity_type, entity_id, data):
639639
if upload_filmstrip_image:
640640
filmstrip_id = self.upload_filmstrip_thumbnail(entity_type, result['id'], upload_filmstrip_image)
641641
result['filmstrip_image_id'] = filmstrip_id
642-
filmsrip = self.find_one(entity_type,
642+
filmstrip = self.find_one(entity_type,
643643
[['id', 'is', result.get('id')]],
644644
fields=['filmstrip_image'])
645645
result['filmstrip_image'] = filmstrip.get('filmstrip_image')
@@ -1051,7 +1051,7 @@ def download_attachment(self, attachment_id):
10511051
urllib2.install_opener(opener)
10521052

10531053
url = urlparse.urlunparse((self.config.scheme, self.config.server,
1054-
"/file_serve/%s" % urllib.quote(str(attachment_id)),
1054+
"/file_serve/attachment/%s" % urllib.quote(str(attachment_id)),
10551055
None, None, None))
10561056

10571057
try:

0 commit comments

Comments
 (0)