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,6 +1574,7 @@ def _add_dogwhistle_warnings(summary: str, content: str,
if translate.get(whistle_str): if translate.get(whistle_str):
whistle_str = translate[whistle_str] whistle_str = translate[whistle_str]
if summary: if summary:
if whistle_str not in summary:
summary += ', ' + whistle_str summary += ', ' + whistle_str
else: else:
summary = whistle_str summary = whistle_str