add
This commit is contained in:
@@ -49,10 +49,6 @@ def getSVG():
|
|||||||
|
|
||||||
return render_template("form.html")
|
return render_template("form.html")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/gcode_file", methods=["POST", "GET"])
|
@app.route("/gcode_file", methods=["POST", "GET"])
|
||||||
def getGcode():
|
def getGcode():
|
||||||
|
|
||||||
@@ -71,22 +67,17 @@ def getGcode():
|
|||||||
|
|
||||||
return render_template("form.html")
|
return render_template("form.html")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@app.route("/text", methods=["POST", "GET"])
|
@app.route("/text", methods=["POST", "GET"])
|
||||||
def getText():
|
def getText():
|
||||||
|
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
|
||||||
txt = request.form["txt"]
|
txt = request.form["txt"]
|
||||||
|
size_txt = txt.count()
|
||||||
if txt:
|
if txt:
|
||||||
print(txt)
|
# print(txt)
|
||||||
|
print(size-txt)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print('empty text')
|
print('empty text')
|
||||||
|
|
||||||
|
|
||||||
return render_template("form.html")
|
return render_template("form.html")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user