Check for duplicates

merge-requests/30/head
Bob Mottram 2022-07-05 22:27:29 +01:00
parent 606fa14da1
commit fed756ecac
1 changed files with 2 additions and 1 deletions

View File

@ -1574,7 +1574,8 @@ def _add_dogwhistle_warnings(summary: str, content: str,
if translate.get(whistle_str):
whistle_str = translate[whistle_str]
if summary:
summary += ', ' + whistle_str
if whistle_str not in summary:
summary += ', ' + whistle_str
else:
summary = whistle_str
return summary