Skip to content

Commit 53d94c3

Browse files
committedJan 4, 2015
Really remove the os.path.join this time
1 parent 348325c commit 53d94c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎esp/esp/survey/templatetags/survey.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ def histogram(answer_list, format='html'):
185185
if format == 'tex':
186186
return '\includegraphics[width=%fin]{%s}' % (image_width, image_path)
187187
if format == 'html':
188-
return '<img src="%s" />' % os.path.join('/media/' + HISTOGRAM_PATH +
189-
png_filename)
188+
return '<img src="%s" />' % ('/media/' + HISTOGRAM_PATH + png_filename)
190189

191190
@register.filter
192191
def answer_to_list(ans):

0 commit comments

Comments
 (0)