From a1d48ca2467d714f94c7496ccdde54a7d8e4bc1b Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Thu, 20 Apr 2023 10:21:18 +0200 Subject: [PATCH] Remove empty value fill-ins --- nummi/main/templates/main/plot/history.html | 2 +- nummi/main/templatetags/main_extras.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nummi/main/templates/main/plot/history.html b/nummi/main/templates/main/plot/history.html index 4eb48ae..d47af15 100644 --- a/nummi/main/templates/main/plot/history.html +++ b/nummi/main/templates/main/plot/history.html @@ -22,7 +22,7 @@ {% for date in history.data %} - + {{ date.month|date:"Y-m" }} {{ date.sum_m|pmrvalue }} diff --git a/nummi/main/templatetags/main_extras.py b/nummi/main/templatetags/main_extras.py index a0dad28..7558403 100644 --- a/nummi/main/templatetags/main_extras.py +++ b/nummi/main/templatetags/main_extras.py @@ -8,7 +8,7 @@ register = template.Library() @register.filter def value(val, pm=False, r=2): if not val: - return mark_safe("–") + return "" _prefix = "" _suffix = " €" _val = formats.number_format(round(val, r), r, use_l10n=True, force_grouping=True)