feat: clean up yearly overview by removing 0 values

This commit is contained in:
Herculino Trotta
2024-10-24 00:46:50 -03:00
parent 324c6a607c
commit f1f56d0326
+1
View File
@@ -139,6 +139,7 @@ def yearly_overview(request, year: int):
"balance_paid", "balance_paid",
"balance_total", "balance_total",
]: ]:
if entry[field] != 0:
result[month][field].append( result[month][field].append(
{ {
"code": currency_code, "code": currency_code,