From: Luke Kenneth Casson Leighton Date: Sat, 24 Apr 2021 17:50:44 +0000 (+0100) Subject: previous_payment now a list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=568ffdbc6a024d07931720c1882f6cdcc35dca36;p=utils.git previous_payment now a list --- diff --git a/src/budget_sync/budget_graph.py b/src/budget_sync/budget_graph.py index 3e417f3..a6de7a7 100644 --- a/src/budget_sync/budget_graph.py +++ b/src/budget_sync/budget_graph.py @@ -589,12 +589,11 @@ class BudgetGraph: payment.payee previous_payment = payee_payments.get(payment.payee) if previous_payment is not None: - payee_payments[payment.payee].append(payment) # NOT AN ERROR print ("NOT AN ERROR", BudgetGraphDuplicatePayeesForTask( node.bug.id, root.bug.id, - previous_payment.payee_key, payment.payee_key - )) + previous_payment[-1].payee_key, payment.payee_key)) + payee_payments[payment.payee].append(payment) else: payee_payments[payment.payee] = [payment] except BudgetGraphBaseError as e: