]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - flakes/copanier/fix_reduce.patch
5390bcc873675bb4c440374c308c8a409f425828
[perso/Immae/Config/Nix.git] / flakes / copanier / fix_reduce.patch
1 diff --git a/copanier/views/delivery.py b/copanier/views/delivery.py
2 index 779d52c..1696919 100644
3 --- a/copanier/views/delivery.py
4 +++ b/copanier/views/delivery.py
5 @@ -401,7 +401,7 @@ async def compute_payments(request, response, id):
6 balance.append((group_id, amount))
7
8 debiters, crediters = order_balance(balance)
9 - results = reduce_balance(debiters[:], crediters[:])
10 + results = reduce_balance(debiters[:], crediters[:], [])
11
12 results_dict = defaultdict(partial(defaultdict, float))
13