Fix #940600 (Content server does not correctly display multiple fields of type 'rating')

This commit is contained in:
Kovid Goyal 2012-02-25 09:59:43 +05:30
commit ca6690e2eb

View File

@ -825,7 +825,7 @@ class BrowseServer(object):
continue
if m['datatype'] == 'rating':
r = u'<strong>%s: </strong>'%xml(m['name']) + \
render_rating(mi.get(field), self.opts.url_prefix,
render_rating(mi.get(field)/2.0, self.opts.url_prefix,
prefix=m['name'])[0]
else:
r = u'<strong>%s: </strong>'%xml(m['name']) + \