add
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
return render_template("form.html")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user