summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-08-25 18:34:26 +0000
committerluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-08-25 18:34:26 +0000
commitcbe6d29388f0d96c3c9dec96f741c08e52464b65 (patch)
treead0f7ec84b0982698804baf5f3d7a4ed6894317a /apps
parentdf92e7882304e6b20969e06059b93b5ef36b6260 (diff)
fixed save bug in photos.retriever
Diffstat (limited to 'apps')
-rw-r--r--apps/photos/retriever.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/photos/retriever.py b/apps/photos/retriever.py
index f7114fd..40de591 100644
--- a/apps/photos/retriever.py
+++ b/apps/photos/retriever.py
@@ -174,9 +174,11 @@ def slideshow_image(photo):
filename = '%s/%s.jpg' %(slide_dir, photo.flickr_id)
img.save(filename)
photo.slideshowimage_width = photo.get_width
+ print photo.get_width, photo.slideshowimage_width
photo.slideshowimage_height = photo.get_height
photo.slideshowimage_margintop = photo.get_margin_top
photo.slideshowimage_marginleft = photo.get_margin_left
+ photo.save()
def make_local_copies(photo):
orig_dir = settings.IMAGES_ROOT + '/flickr/full/'+ photo.pub_date.strftime("%Y")