From 568ffdbc6a024d07931720c1882f6cdcc35dca36 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 24 Apr 2021 18:50:44 +0100 Subject: [PATCH] previous_payment now a list --- src/budget_sync/budget_graph.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: -- 2.30.2