Show "all" opds feed entries only if there is at least one entry

This commit is contained in:
Ozzie Isaacs 2023-11-06 16:35:39 +01:00
parent b2e4907165
commit fad6550ff1
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ def render_element_index(database_column, linked_table, folder):
entries = entries.join(linked_table).join(db.Books)
entries = entries.filter(calibre_db.common_filters()).group_by(func.upper(func.substr(database_column, 1, 1))).all()
elements = []
if off == 0:
if off == 0 and entries:
elements.append({'id': "00", 'name': _("All")})
shift = 1
for entry in entries[