Skip to content

Commit

Permalink
Content server: Book details page: Do not display empty rows for unde…
Browse files Browse the repository at this point in the history
…fined dates
  • Loading branch information
kovidgoyal committed Jun 1, 2019
1 parent 949ac56 commit a0a3f89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pyj/book_list/book_details.pyj
Expand Up @@ -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:
Expand Down

0 comments on commit a0a3f89

Please sign in to comment.