Permalink
Browse files

fixed bug in filters.get_thumb_url

  • Loading branch information...
1 parent f799ff3 commit bc0461f1ab2c029840d84ace172050af64a63541 @ryanmark ryanmark committed Dec 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 p2p/filters.py
View
@@ -101,7 +101,7 @@ def get_thumb_url(content_dict, size, ratio=None):
query = '/'.join([str(size), ratio])
if QUERY_PATTERN.search(image_url):
- ret = QUERY_PATTERN.sub(query, image_url)
+ ret = QUERY_PATTERN.sub('/' + query, image_url)
else:
ret = '/'.join([image_url.rstrip('/'), query])
return ret.rstrip('/')

0 comments on commit bc0461f

Please sign in to comment.