Fix no-income / no-expense snapshots
This commit is contained in:
parent
ae39b4870b
commit
51d57564c4
1 changed files with 2 additions and 2 deletions
|
@ -263,8 +263,8 @@ class SnapshotUpdateView(NummiUpdateView):
|
|||
"data": _categories,
|
||||
"max": max(
|
||||
_categories.aggregate(
|
||||
max=models.Max("sum_p"),
|
||||
min=models.Min("sum_m"),
|
||||
max=models.Max("sum_p", default=0),
|
||||
min=models.Min("sum_m", default=0),
|
||||
).values(),
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue