Content server: Book details page: Do not display empty rows for undefined dates

This commit is contained in:
Kovid Goyal 2019-06-01 08:32:03 +05:30
parent 949ac56a5c
commit a0a3f89820
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -259,7 +259,9 @@ def render_metadata(mi, table, book_id): # {{{
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: