diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /flakes/copanier/fix_reduce.patch | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'flakes/copanier/fix_reduce.patch')
-rw-r--r-- | flakes/copanier/fix_reduce.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/flakes/copanier/fix_reduce.patch b/flakes/copanier/fix_reduce.patch new file mode 100644 index 0000000..5390bcc --- /dev/null +++ b/flakes/copanier/fix_reduce.patch | |||
@@ -0,0 +1,13 @@ | |||
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 | |||