fix #2014 (User menu dropdown in caliblur is tiny and presents scrollbars)

Fix display of nonexistent series_index
Fix caliblur add-to-shelf
This commit is contained in:
Ozzie Isaacs
2021-07-11 13:15:13 +02:00
parent aae81c3d24
commit 15ec6bec95
3 changed files with 6 additions and 2 deletions

View File

@@ -113,6 +113,7 @@ def yesno(value, yes, no):
@jinjia.app_template_filter('formatfloat')
def formatfloat(value, decimals=1):
value = 0 if not value else value
return ('{0:.' + str(decimals) + 'g}').format(value)