From 2ff66d0e3a04eb844efa7dd4f3b3b5e9381546fa Mon Sep 17 00:00:00 2001 From: jce Date: Tue, 12 Dec 2023 13:12:33 +0100 Subject: [PATCH] Ensure uniqueness of dependencies for TaskJuggler --- src/mlx/jira_juggler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mlx/jira_juggler.py b/src/mlx/jira_juggler.py index 10369d2..48dfa49 100644 --- a/src/mlx/jira_juggler.py +++ b/src/mlx/jira_juggler.py @@ -373,7 +373,8 @@ def append_value(self, value): Args: value (object): Value to append to the property """ - self.value.append(value) + if value not in self.value: + self.value.append(value) def load_from_jira_issue(self, jira_issue): """Loads the object with data from a Jira issue