Compare commits
2 commits
a5dd41b533
...
3c1e4ac45d
Author | SHA1 | Date | |
---|---|---|---|
3c1e4ac45d | |||
02bd1853d5 |
1 changed files with 2 additions and 2 deletions
|
@ -23,9 +23,9 @@ def category_plot(transactions, **kwargs):
|
|||
"categories": categories,
|
||||
}
|
||||
| categories.aggregate(
|
||||
max=Greatest(models.Sum("sum_m"), models.Sum("sum_p")),
|
||||
max=Greatest(-models.Sum("sum_m"), models.Sum("sum_p")),
|
||||
total_m=models.Sum("sum_m"),
|
||||
total_p=models.Sum("sum_p"),
|
||||
total=models.Sum("value"),
|
||||
total=models.Sum("sum"),
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue