From 1590980cb99f9f2d43968e2c5bd1d1a2b8cd96f2 Mon Sep 17 00:00:00 2001 From: Boyana Date: Mon, 8 May 2023 17:23:38 +0200 Subject: [PATCH] test --- test.py | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index 7fb3b22..0000000 --- a/test.py +++ /dev/null @@ -1,31 +0,0 @@ -from flask import Flask, request - -app = Flask(__name__) - -html_template = """ -

transformations

-
- -

- -
-""" - -@app.route("/", methods=["POST","GET"]) -def transformations(): - if request.method == "POST": - - search = request.form["search"] - - result_list = [] - for character in search: - unicode_point = format(ord(character)) - result_list.append(character + " " + unicode_point) - - result_string = "
\n".join(result_list) - - return html_template + f"
{ result_string }
" - - if request.method == "GET": - - return html_template \ No newline at end of file