From 37a3f6abf3247a841746b7c3baa3833f36342c1c Mon Sep 17 00:00:00 2001 From: Nathan-rek <130574828+Nathan-rek@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:58:51 +0100 Subject: [PATCH] add --- plotter-app/app.py | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/plotter-app/app.py b/plotter-app/app.py index 599cdaa..61312df 100644 --- a/plotter-app/app.py +++ b/plotter-app/app.py @@ -49,10 +49,6 @@ def getSVG(): return render_template("form.html") - - - - @app.route("/gcode_file", methods=["POST", "GET"]) def getGcode(): @@ -71,22 +67,17 @@ def getGcode(): return render_template("form.html") - - - - @app.route("/text", methods=["POST", "GET"]) def getText(): - if request.method == "POST": - txt = request.form["txt"] + size_txt = txt.count() if txt: - print(txt) +# print(txt) + print(size-txt) + else: - print('empty text') - - + print('empty text') return render_template("form.html")