mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
0161d6ce08
commit
b523de9813
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user