This commit is contained in:
Marce Coll committed 2021-11-27 12:41:54 +01:00
1 parent 6fcf3eb1e7
commit 8449700e68
4 files changed
+26 -6

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<html>
<head>
<title>Absencia de Presencia</title>
</head>
<body>
<form>
<input type="text"/>
<input type="submit"/>
</form>
</body>
</html>
+4 -6
View File
@@ -5,8 +5,6 @@ import flask
from werkzeug.wsgi import FileWrapper
import dibuixa
app = flask.Flask(__name__)
@@ -23,16 +21,16 @@ def handle_errors(func):
return func(*args, **kwargs)
except HTTPError as r:
return r, r.status_code
except Exception:
except Exception as e:
print(e)
return flask.Response("Oh no! Hi ha hagut un error en el servidor :(", status="Internal error"), 500
return wrapped
@app.route("/")
@handle_errors
def hola(code):
return "Hola"
def index():
return flask.render_template("./index.html")
if __name__ == "__main__":
View File
Whitespace-only changes.
+11
View File
@@ -0,0 +1,11 @@
<html>
<head>
<title>Absencia de Presencia</title>
</head>
<body>
<form>
<input type="text"/>
<input type="submit"/>
</form>
</body>
</html>