We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
os.path.join
1 parent 348325c commit 53d94c3Copy full SHA for 53d94c3
esp/esp/survey/templatetags/survey.py
@@ -185,8 +185,7 @@ def histogram(answer_list, format='html'):
185
if format == 'tex':
186
return '\includegraphics[width=%fin]{%s}' % (image_width, image_path)
187
if format == 'html':
188
- return '<img src="%s" />' % os.path.join('/media/' + HISTOGRAM_PATH +
189
- png_filename)
+ return '<img src="%s" />' % ('/media/' + HISTOGRAM_PATH + png_filename)
190
191
@register.filter
192
def answer_to_list(ans):
0 commit comments