Love f-strings so much
This commit is contained in:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user