char.stat_int, char.stat_wil, char.stat_dex, char.stat_con, char.stat_str + char.stat_int + char.stat_wil + char.stat_dex + char.stat_con, char.rent, char.notes, ) if send_mail( mail, app.config.get("MAIL_SENDER_ADDRESS"), request.email, app.config.get("RELEASE_SUBJECT"), body ): return redirect(url_for("requests")) else: return render_template("fail.html", message="Could not send email.") else: return render_template("fail.html", message="This is not your character.") else: return render_template("fail.html", message="That character does not exist.") else: return render_template("fail.html", message="That request does not exist.") @app.route("/help") def help(): return render_template("help.html", email=app.config.get("MAIL_SENDER_ADDRESS")) if __name__ == "__main__": app.run()
#!/usr/bin/env python from charg import app app.run(debug=True)