From: Luke Kenneth Casson Leighton Date: Sat, 24 Apr 2021 17:48:10 +0000 (+0100) Subject: not an error if duplicate alias X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=945dbde09d4d6ff0a6d75d93f12b51af9f0870c5;p=utils.git not an error if duplicate alias --- 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)