fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a272d
)
minor cleanup
author
Jan Szejko
<janek37@gmail.com>
Thu, 27 Apr 2017 14:08:27 +0000
(16:08 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 27 Apr 2017 14:08:27 +0000
(16:08 +0200)
apps/cover/management/commands/refresh_covers.py
patch
|
blob
|
history
diff --git
a/apps/cover/management/commands/refresh_covers.py
b/apps/cover/management/commands/refresh_covers.py
index
540304d
..
2c78db9
100644
(file)
--- a/
apps/cover/management/commands/refresh_covers.py
+++ b/
apps/cover/management/commands/refresh_covers.py
@@
-36,12
+36,12
@@
class Command(BaseCommand):
print 'Download url already present in image %s' % same_url.get().id
continue
try:
- t = URLOpener().open(flickr_
data['download_url']
).read()
+ t = URLOpener().open(flickr_
url
).read()
except urllib.URLError:
print 'Broken download url'
except IOError:
print 'Connection failed'
else:
- image.download_url = flickr_
data['download_url']
+ image.download_url = flickr_
url
image.file.save(image.file.name, ContentFile(t))
image.save()