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")