From 5cbcfc673f2253cbd2186ffc56ce87f739350bf2 Mon Sep 17 00:00:00 2001 From: thematdev Date: Mon, 4 Apr 2022 23:20:52 +0300 Subject: [PATCH] Love f-strings so much --- app/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 8ceb349..78df573 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -56,7 +56,7 @@ def get_pandoc_page(page): with open(f'{path}/config.json') as f: data = json.loads(f.read()) if not os.path.exists(f'{path}/render.html') or not os.path.exists(f'{path}/render.html.lock'): - print('Rendered page or lockfile for {page} does not exist! Rendering {page}') + print(f'Rendered page or lockfile for {page} does not exist! Rendering {page}') render_page(page) else: with open(f'{path}/render.html.lock', 'r') as f: @@ -64,7 +64,7 @@ def get_pandoc_page(page): current_hash = hash_file_sha512(f'{path}/main.md') if rendered_hash != current_hash: print(f'CURRENT: {current_hash}, RENDERED: {rendered_hash}') - print('Integrity test failed, rendering {page}!') + print(f'Integrity test failed, rendering {page}!') render_page(page) template = data['template'] with open(f'{path}/render.html', 'r') as f: