1
Fork 0
mirror of https://github.com/RealOrangeOne/RealOrangeOne.git synced 2024-11-23 10:59:30 +00:00

Print the new README

This commit is contained in:
Jake Howard 2024-02-07 19:46:42 +00:00
parent f9400b8b05
commit 343686f515
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -19,9 +19,13 @@ def get_posts() -> list[dict]:
def main(): def main():
template = jinja2.Template(TEMPLATE_FILE.read_text()) template = jinja2.Template(TEMPLATE_FILE.read_text())
OUTPUT_FILE.write_text(template.render( new_readme = template.render(
latest_posts=get_posts() latest_posts=get_posts()
)) )
print(new_readme)
OUTPUT_FILE.write_text(new_readme)
if __name__ == "__main__": if __name__ == "__main__":
main() main()