Change how ESCAPE_HTML set
This commit is contained in:
parent
5cc68b7d0a
commit
7860d0ef3e
11
main.py
11
main.py
|
@ -13,16 +13,7 @@ if not HTTP_ENDPOINT:
|
||||||
print("ERROR: HTTP_ENDPOINT not set")
|
print("ERROR: HTTP_ENDPOINT not set")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if not ESCAPE_HTML:
|
ESCAPE_HTML = ESCAPE_HTML and ESCAPE_HTML == "True"
|
||||||
print("ERROR: ESCAPE_HTML not set")
|
|
||||||
exit(1)
|
|
||||||
if ESCAPE_HTML == "True":
|
|
||||||
ESCAPE_HTML = True
|
|
||||||
elif ESCAPE_HTML == "False":
|
|
||||||
ESCAPE_HTML = False
|
|
||||||
else:
|
|
||||||
print("ERROR: ESCAPE_HTML must be set to True or False")
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
@app.route("/", methods=["GET", "POST"])
|
@app.route("/", methods=["GET", "POST"])
|
||||||
def index():
|
def index():
|
||||||
|
|
Loading…
Reference in New Issue