From: Philipp Spitzer Date: Sun, 3 Jul 2022 21:44:18 +0000 (+0200) Subject: Add more context to the diff. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wrpylib.git/commitdiff_plain/b242ccd158bac663c1ed6b4cc6317a8321815325 Add more context to the diff. --- 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: