mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-02-06 07:13:01 +00:00
During the beta, don't update the wiki automatically
This commit is contained in:
parent
1b7014f369
commit
3806feb67f
@ -150,7 +150,7 @@ class Command(BaseCommand):
|
|||||||
return page, header + body
|
return page, header + body
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def refresh_raw_wiki_page(comment="refresh", debug=False):
|
def refresh_raw_wiki_page(comment="refresh", debug=True):
|
||||||
page, content = Command.get_raw_page()
|
page, content = Command.get_raw_page()
|
||||||
if debug:
|
if debug:
|
||||||
print(content)
|
print(content)
|
||||||
@ -158,7 +158,7 @@ class Command(BaseCommand):
|
|||||||
Command.edit_wiki(page, content, comment)
|
Command.edit_wiki(page, content, comment)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def refresh_human_readable_wiki_page(comment="refresh", debug=False):
|
def refresh_human_readable_wiki_page(comment="refresh", debug=True):
|
||||||
page, content = Command.get_human_readable_page()
|
page, content = Command.get_human_readable_page()
|
||||||
if debug:
|
if debug:
|
||||||
print(content)
|
print(content)
|
||||||
@ -172,9 +172,6 @@ class Command(BaseCommand):
|
|||||||
parser.add_argument("--debug", "-d", action="store_true", help="Don't commit to the wiki, render in stdout")
|
parser.add_argument("--debug", "-d", action="store_true", help="Don't commit to the wiki, render in stdout")
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
with open("/tmp/abc", "w") as f:
|
|
||||||
f.write("lalala")
|
|
||||||
f.write(str(options))
|
|
||||||
if options["raw"]:
|
if options["raw"]:
|
||||||
Command.refresh_raw_wiki_page(options["comment"], options["debug"])
|
Command.refresh_raw_wiki_page(options["comment"], options["debug"])
|
||||||
if options["human"]:
|
if options["human"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user