Fix bug when snapshot only has negative or positive transactions
This commit is contained in:
parent
f359426997
commit
f21e2a1b2e
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ def snapshot(request, uuid=None):
|
||||||
)
|
)
|
||||||
context["cat_lim"] = max(
|
context["cat_lim"] = max(
|
||||||
map(
|
map(
|
||||||
abs,
|
lambda x: abs(x) if x else 0,
|
||||||
context["categories"]
|
context["categories"]
|
||||||
.aggregate(
|
.aggregate(
|
||||||
max=models.Max("sum_p"),
|
max=models.Max("sum_p"),
|
||||||
|
|
Loading…
Reference in a new issue