From 1b37a13978f1ea697329871db493fc6d89343ecd Mon Sep 17 00:00:00 2001
From: Mathieu Courtois <mathieu.courtois@edf.fr>
Date: Mon, 21 Oct 2024 17:41:33 +0200
Subject: [PATCH] [#34113] avoid to check several times the same issues

---
 bin/maint/check_expected_documents.py | 2 +-
 bin/maint/check_issue_status.py       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/maint/check_expected_documents.py b/bin/maint/check_expected_documents.py
index 639bd08..1ebe091 100755
--- a/bin/maint/check_expected_documents.py
+++ b/bin/maint/check_expected_documents.py
@@ -29,7 +29,7 @@ def check_expected_documents(ids):
     """
     ok = True
     with get_connection() as rex:
-        for num in ids:
+        for num in set(ids):
             docs = get_documents(str(num), rex)
             if not docs:
                 logger.info(_("no changes needed for #{0}").format(num))
diff --git a/bin/maint/check_issue_status.py b/bin/maint/check_issue_status.py
index 61e1777..cdd2a0c 100755
--- a/bin/maint/check_issue_status.py
+++ b/bin/maint/check_issue_status.py
@@ -29,7 +29,7 @@ def check_issue_status(expected, ids):
     """
     ok = True
     with get_connection() as rex:
-        for num in ids:
+        for num in set(ids):
             issue_id = "issue" + str(num)
             issue = rex.display(issue_id)
             ok = ok and check_status(
-- 
GitLab