dokuwiki update only when configured

This commit is contained in:
ROTTLER Tamas 2022-09-17 15:22:54 +02:00
parent ed57d08a10
commit aa0a707d49

View File

@ -233,9 +233,10 @@ for z in rev.zones():
revfile.write_text(newrev) revfile.write_text(newrev)
print(f"{revfile} modified.") print(f"{revfile} modified.")
wikitext = "" if conf.dokuwiki_url:
for z in rev.zones(): wikitext = ""
wikitext += "\n".join(rev.zone_wiki(z)) +"\n\n" for z in rev.zones():
dokuwiki_update(wikitext) wikitext += "\n".join(rev.zone_wiki(z)) +"\n\n"
dokuwiki_update(wikitext)
# vim: set tabstop=4 shiftwidth=4 expandtab smarttab: # vim: set tabstop=4 shiftwidth=4 expandtab smarttab: