Fix no-income / no-expense snapshots

This commit is contained in:
Edgar P. Burkhart 2023-04-20 15:19:33 +02:00
parent ae39b4870b
commit 51d57564c4
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -263,8 +263,8 @@ class SnapshotUpdateView(NummiUpdateView):
"data": _categories, "data": _categories,
"max": max( "max": max(
_categories.aggregate( _categories.aggregate(
max=models.Max("sum_p"), max=models.Max("sum_p", default=0),
min=models.Min("sum_m"), min=models.Min("sum_m", default=0),
).values(), ).values(),
), ),
} }