Skip to content

Commit

Permalink
#25 getting full link to images was implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
karavanjo committed Oct 17, 2014
1 parent f396413 commit 72ddf2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eco/views/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def get_card_images(request):
photos = dbsession.query(CardsPhoto).filter_by(card_id=card_id).options(joinedload('photo'))
for photo in photos:
photo_json = photo.photo.as_json_dict()
photo_json['url'] = request.application_url + photo_json['url']
images_result.append(photo_json)
except:
return HTTPInternalServerError()
Expand Down

0 comments on commit 72ddf2f

Please sign in to comment.