mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-10 07:22:05 +05:30
logic to update the yaml doc
This commit is contained in:
parent
d76225cf32
commit
9d9db1de7f
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user