From e6da718cae160800832d0df7e8d81610ba376e3d Mon Sep 17 00:00:00 2001 From: mjfernez Date: Wed, 9 Jun 2021 16:15:08 -0400 Subject: PEP8 and README tweaks Fixes PEP8 formatting because apparently coala messed this up. Added some clarifying notes in the README. --- server.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index 15514ba..692fe8c 100644 --- a/server.py +++ b/server.py @@ -155,10 +155,10 @@ def send_file_from_site(path): `render_file`, send the raw file to the user """ return send_from_directory('template/site/', path, - mimetype=siteconfig.MIMETYPES.get( - f".{ path.split('.')[-1] }", siteconfig.DEFAULT_MIMETYPE - ) - ) + mimetype=siteconfig.MIMETYPES.get( + f".{ path.split('.')[-1] }", siteconfig.DEFAULT_MIMETYPE + ) + ) @app.route("/static/") @@ -168,10 +168,10 @@ def send_file_from_static(path): `render_file`, send the raw file to the user """ return send_from_directory('static/', path, - mimetype=siteconfig.MIMETYPES.get( - f".{ path.split('.')[-1] }", siteconfig.DEFAULT_MIMETYPE - ) - ) + mimetype=siteconfig.MIMETYPES.get( + f".{ path.split('.')[-1] }", siteconfig.DEFAULT_MIMETYPE + ) + ) def setup(): -- cgit v1.2.3