mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 11:03:56 +02:00
Content server: Book details page: Do not display empty rows for undefined dates
This commit is contained in:
parent
949ac56a5c
commit
a0a3f89820
1 changed files with 3 additions and 1 deletions
|
|
@ -259,7 +259,9 @@ def process_languages(field, fm, name, val):
|
|||
def process_datetime(field, fm, name, val):
|
||||
if val:
|
||||
fmt = interface_data['gui_' + field + '_display_format'] or (fm['display'] or {}).date_format
|
||||
add_row(name, format_date(val, fmt))
|
||||
val = format_date(val, fmt)
|
||||
if val:
|
||||
add_row(name, val)
|
||||
|
||||
def process_series(field, fm, name, val):
|
||||
if val:
|
||||
|
|
|
|||
Loading…
Reference in a new issue