Skip to content

Commit

Permalink
exclude pypoe edits from manual-revert check
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlvllvlvllvlvl committed Dec 15, 2023
1 parent ec24b54 commit f63c0ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PyPoE/cli/exporter/wiki/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@ def handle_page(self, *a, row=None, rownum=None):
console("Found text marked as Do Not Translate. Skipping.")
return
revisions = page.exists and [
r["*"].splitlines() for r in page.revisions(limit=2, prop="content")
r["content"].splitlines()
for r in page.revisions(limit=2, prop="content|comment")
if not r["comment"].startswith("PyPoE/ExporterBot/")
]
if revisions and new_lines in revisions:
console(
Expand Down

0 comments on commit f63c0ca

Please sign in to comment.