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