logic to update the yaml doc

This commit is contained in:
Bhupesh-V 2023-04-24 12:19:21 +05:30
parent d76225cf32
commit 9d9db1de7f

View File

@ -53,4 +53,9 @@ for yaml_text in yaml_sections:
for rule in rules: for rule in rules:
for key, value in rule.items(): for key, value in rule.items():
print("rule name: ", key) if key == "New post comment":
rule[key]["comment"] = "This is a test comment"
new_content = ruamel.yaml.dump(rule[key], Dumper=ruamel.yaml.RoundTripDumper)
print(new_content)
# TODO: Update the wiki page with the new content