diff options
Diffstat (limited to 'snekbox/site/snekapp.py')
-rw-r--r-- | snekbox/site/snekapp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/snekbox/site/snekapp.py b/snekbox/site/snekapp.py index ef96148..3954238 100644 --- a/snekbox/site/snekapp.py +++ b/snekbox/site/snekapp.py @@ -12,22 +12,22 @@ app.use_reloader = False log = app.logger [email protected]('/') [email protected]("/") def index(): """Return a page with a form for inputting code to be executed.""" - return render_template('index.html') + return render_template("index.html") [email protected]('/result', methods=["POST", "GET"]) [email protected]("/result", methods=["POST", "GET"]) def result(): """Execute code and return a page displaying the results.""" if request.method == "POST": code = request.form["Code"] output = nsjail.python3(code) - return render_template('result.html', code=code, result=output) + return render_template("result.html", code=code, result=output) [email protected]('/input', methods=["POST"]) [email protected]("/input", methods=["POST"]) def code_input(): """Execute code and return the results.""" body = request.get_json() |