aboutsummaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authormjfernez <mjfernez@gmail.com>2021-06-09 16:15:08 -0400
committermjfernez <mjfernez@gmail.com>2021-06-09 16:15:08 -0400
commite6da718cae160800832d0df7e8d81610ba376e3d (patch)
treeb5f0e8e70a5060f5d730e580dbce5a91e62153fc /server.py
parent85b8737e96860a9e0c957e8117efad1c18adc11c (diff)
downloadezcms-e6da718cae160800832d0df7e8d81610ba376e3d.tar.gz
PEP8 and README tweaks
Fixes PEP8 formatting because apparently coala messed this up. Added some clarifying notes in the README.
Diffstat (limited to 'server.py')
-rw-r--r--server.py16
1 files changed, 8 insertions, 8 deletions
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/<path:path>")
@@ -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():