Skip to content
Snippets Groups Projects
Commit 1b37a139 authored by Mathieu Courtois's avatar Mathieu Courtois
Browse files

[#34113] avoid to check several times the same issues

parent 9c19ce83
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ def check_expected_documents(ids): ...@@ -29,7 +29,7 @@ def check_expected_documents(ids):
""" """
ok = True ok = True
with get_connection() as rex: with get_connection() as rex:
for num in ids: for num in set(ids):
docs = get_documents(str(num), rex) docs = get_documents(str(num), rex)
if not docs: if not docs:
logger.info(_("no changes needed for #{0}").format(num)) logger.info(_("no changes needed for #{0}").format(num))
......
...@@ -29,7 +29,7 @@ def check_issue_status(expected, ids): ...@@ -29,7 +29,7 @@ def check_issue_status(expected, ids):
""" """
ok = True ok = True
with get_connection() as rex: with get_connection() as rex:
for num in ids: for num in set(ids):
issue_id = "issue" + str(num) issue_id = "issue" + str(num)
issue = rex.display(issue_id) issue = rex.display(issue_id)
ok = ok and check_status( ok = ok and check_status(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment