]> ToastFreeware Gitweb - philipp/winterrodeln/wrpylib.git/commitdiff
Remove question whether to replace the page.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 24 Nov 2023 17:56:31 +0000 (18:56 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 24 Nov 2023 17:56:31 +0000 (18:56 +0100)
scripts/update_sledrun_with_wrsledrunjson.py

index 802450406b538fd26b224e9be8f7bf08feeb8093..922106b7467afa879cb2e6cf070b68929a9b1572 100644 (file)
@@ -2,9 +2,6 @@
 import argparse
 from typing import List
 
 import argparse
 from typing import List
 
-from termcolor import cprint  # python3-termcolor
-
-from wrpylib.cli_tools import unified_diff, input_yes_no_quit, Choice
 from wrpylib.mwapi import WikiSite
 
 
 from wrpylib.mwapi import WikiSite
 
 
@@ -29,15 +26,6 @@ def update_sledrun_wikitext_with_wrsledrunjson_tag(ini_files: List[str]):
             if new_text == previous_text:
                 continue
 
             if new_text == previous_text:
                 continue
 
-            cprint(page['title'], 'green')
-            unified_diff(previous_text, new_text)
-            choice = input_yes_no_quit('Do you accept the changes [yes, no, quit]? ', None)
-            if choice == Choice.no:
-                continue
-
-            if choice == Choice.quit:
-                return
-
             site(
                 'edit',
                 pageid=page['pageid'],
             site(
                 'edit',
                 pageid=page['pageid'],