From 945dbde09d4d6ff0a6d75d93f12b51af9f0870c5 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 24 Apr 2021 18:48:10 +0100 Subject: [PATCH] not an error if duplicate alias --- src/budget_sync/budget_graph.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/budget_sync/budget_graph.py b/src/budget_sync/budget_graph.py index d67f2f9..3e417f3 100644 --- a/src/budget_sync/budget_graph.py +++ b/src/budget_sync/budget_graph.py @@ -589,11 +589,14 @@ class BudgetGraph: payment.payee previous_payment = payee_payments.get(payment.payee) if previous_payment is not None: - errors.append(BudgetGraphDuplicatePayeesForTask( - node.bug.id, root.bug.id, - previous_payment.payee_key, payment.payee_key + 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 )) - payee_payments[payment.payee] = payment + else: + payee_payments[payment.payee] = [payment] except BudgetGraphBaseError as e: errors.append(e) -- 2.30.2