Verified Commit ca1eaf34 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Make sure 'fit' variable is an int for thumbnails

parent 5a785fa4
......@@ -51,6 +51,7 @@ def generate_thumbnail(request, size_fit, path, thumbpath):
os.path.join(settings.MEDIA_ROOT, thumbpath))
full_path = os.path.normpath(os.path.join(settings.MEDIA_ROOT, path))
size, fit = size_fit.split('_')
fit = int(fit)
public_media = os.path.join(settings.MEDIA_ROOT, 'public')
thumb_root = os.path.join(settings.MEDIA_ROOT, 'thumbnails', size_fit)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment