mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #938303 (Content Server does not correctly display custom field of type "rating")
This commit is contained in:
commit
ce0f709391
@ -825,7 +825,7 @@ class BrowseServer(object):
|
||||
continue
|
||||
if m['datatype'] == 'rating':
|
||||
r = u'<strong>%s: </strong>'%xml(m['name']) + \
|
||||
render_rating(mi.rating/2.0, self.opts.url_prefix,
|
||||
render_rating(mi.get(field), self.opts.url_prefix,
|
||||
prefix=m['name'])[0]
|
||||
else:
|
||||
r = u'<strong>%s: </strong>'%xml(m['name']) + \
|
||||
|
Loading…
x
Reference in New Issue
Block a user