mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-08 18:09:13 -06:00
PyCharm grand repo wide reformat with black formatter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user