i hate this thing

master
km0 3 years ago
parent f65b56b397
commit fd3207f881

@ -87,9 +87,7 @@ def update_wiki(recipe):
text = page.text() text = page.text()
steps = '' steps = [f"# {log}" for log in recipe["logs"]].join('\n')
for log in recipe['logs']:
steps+= f'# {log}\n'
# PROV TEMPLATE # PROV TEMPLATE
content = f""" content = f"""
@ -102,13 +100,14 @@ def update_wiki(recipe):
<br> <br>
''' Process Log''' ''' Process Log'''
<br> <br>
{[f"# {log}" for log in recipe["logs"]].join('\n')} {steps}
'''Who''' '''Who'''
<br> <br>
{recipe['who']} {recipe['who']}
""" """
text += textwrap.dedent(content) # mi disp
text += [line.strip() for line in content.splitlines()].join('\n')
print(text) print(text)

Loading…
Cancel
Save