mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix also for content-server
This commit is contained in:
parent
da52211180
commit
ab4438b6a5
@ -193,7 +193,7 @@ def get_icon_for_node(node, parent, node_to_tag_map, tag_map, eval_formatter):
|
|||||||
if val_icon is None and TEMPLATE_ICON_INDICATOR in value_icons.get(category, {}):
|
if val_icon is None and TEMPLATE_ICON_INDICATOR in value_icons.get(category, {}):
|
||||||
t = eval_formatter.safe_format(
|
t = eval_formatter.safe_format(
|
||||||
value_icons[category][TEMPLATE_ICON_INDICATOR][0], {'category': category, 'value': name_for_icon(node)},
|
value_icons[category][TEMPLATE_ICON_INDICATOR][0], {'category': category, 'value': name_for_icon(node)},
|
||||||
'VALUE_ICON_TEMPLATE_ERROR', None)
|
'VALUE_ICON_TEMPLATE_ERROR', {})
|
||||||
if t:
|
if t:
|
||||||
# Use POSIX path separator
|
# Use POSIX path separator
|
||||||
val_icon = 'template_icons/' + t
|
val_icon = 'template_icons/' + t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user