Skip to content

Commit

Permalink
Add uid only if we haven't seen it
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroel committed Oct 3, 2023
1 parent cca6e0f commit f4f42c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plone/restapi/services/linkintegrity/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def reply(self):
data = getMultiAdapter((item, self.request), ISerializeToJsonSummary)()
data["breaches"] = []
for breach in breaches:
if breach["target"]["uid"] != uid:
if breach["target"]["uid"] not in uids:
uids.append(breach["target"]["uid"])
continue
for source in breach.get("sources", []):
Expand Down

0 comments on commit f4f42c0

Please sign in to comment.