Content server: Fix {id} not working in the custom list template

Fixes #1818308 [{id} shows as blank in content server template](https://bugs.launchpad.net/calibre/+bug/1818308)
This commit is contained in:
Kovid Goyal 2019-03-07 11:26:15 +05:30
parent 0161d6ce08
commit b523de9813
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -58,6 +58,8 @@ def default_template():
def render_field(field, mi, book_id): # {{{
if field is 'id':
return book_id + ''
field_metadata = library_data.field_metadata
fm = field_metadata[field]
if not fm: