PyCharm grand repo wide reformat with black formatter

This commit is contained in:
Xevion
2020-03-08 20:49:06 -05:00
parent 66c2ff228c
commit bc3cd82a95
16 changed files with 487 additions and 341 deletions

View File

@@ -8,28 +8,33 @@ from app import app
markdown = mistune.Markdown()
@app.route('/keybase.txt')
@app.route("/keybase.txt")
def keybase():
return app.send_static_file('keybase.txt')
return app.send_static_file("keybase.txt")
@app.route('/modpacks')
@app.route("/modpacks")
def modpacks():
return markdown(open(os.path.join(app.root_path, 'static', 'MODPACKS.MD'), 'r').read())
return markdown(
open(os.path.join(app.root_path, "static", "MODPACKS.MD"), "r").read()
)
@app.route('/favicon.ico')
@app.route("/favicon.ico")
def favicon():
return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico',
mimetype='image/vnd.microsoft.icon')
return send_from_directory(
os.path.join(app.root_path, "static"),
"favicon.ico",
mimetype="image/vnd.microsoft.icon",
)
@app.errorhandler(401)
def unauthorized(e):
return redirect(url_for('login'))
return redirect(url_for("login"))
@app.errorhandler(404)
def page_not_found(e):
# note that we set the 404 status explicitly
return render_template('error.html', code=404, message='Content not found...'), 404
return render_template("error.html", code=404, message="Content not found..."), 404