Steps to replicate the issue (include links if applicable):
The diff is shown here - link
What happens?:
It adds duplicate "Примечания" section header while it is already present in the article. As I understand, referencesSections in noreferences.py define where the reflist template should be added and "Примечания" is already named there (line 411).
What should have happened instead?:
If the section "Примечания" already exists, it shouldn't be added once again