From b242ccd158bac663c1ed6b4cc6317a8321815325 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Sun, 3 Jul 2022 23:44:18 +0200 Subject: [PATCH] Add more context to the diff. --- bots/sledrun_wikitext_from_json.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bots/sledrun_wikitext_from_json.py b/bots/sledrun_wikitext_from_json.py index 3c1473b..8f38e32 100644 --- a/bots/sledrun_wikitext_from_json.py +++ b/bots/sledrun_wikitext_from_json.py @@ -57,7 +57,8 @@ class SledrunFromJsonBot( impressions = sledrun_impressions_page.title() text = create_sledrun_wiki(sledrun_json, map_json, impressions) summary = 'Rodelbahnbeschreibung aus JSON Daten aktualisiert.' - self.put_current(text, summary=summary) + pywikibot.showDiff(self.current_page.text.strip(), text.strip(), context=2) + self.put_current(text, summary=summary, show_diff=False) def main(*args: str) -> None: -- 2.39.5