From 19636ed39bf37b2bea1de7f1ce2ec03876eecb1d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 18 2015 14:56:55 +0000 Subject: Ensure the list of issues returned are unique --- diff --git a/progit/lib/link.py b/progit/lib/link.py index 2cc8206..0fb41bf 100644 --- a/progit/lib/link.py +++ b/progit/lib/link.py @@ -70,6 +70,7 @@ def get_relation(session, reponame, username, text, reftype='relates'): if issue is None or issue.project.name not in [project, repo.name]: continue - issues.append(issue) + if issue not in issues: + issues.append(issue) return issues