not an error if duplicate alias
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 24 Apr 2021 17:48:10 +0000 (18:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 24 Apr 2021 17:48:10 +0000 (18:48 +0100)
src/budget_sync/budget_graph.py

index d67f2f9f706f0a614a67c42ae1a02498bd7b0f82..3e417f360cfe2794cb9fc39efd1b6bcb572a5e81 100644 (file)
@@ -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)