Aggiunta pulsante elimina
This commit is contained in:
1 parent
8a15a29dcf
commit
326362d157
1 file changed
+2
-2
@@ -54,7 +54,7 @@ def web_ui():
|
||||
html = "<table border>"
|
||||
for ciscomerda in compiti:
|
||||
html += "<tr>"
|
||||
html += f"<td>{ciscomerda["descrizione"]}</td>"
|
||||
html += f"<td>{ciscomerda["descrizione"]}</td><td><a href=\"/form_delete\" class=\"button\">Elimina</a>"
|
||||
html += "</tr>"
|
||||
html += "</table>"
|
||||
|
||||
@@ -74,6 +74,6 @@ def form_add():
|
||||
d = request.args.get("descrizione")
|
||||
compiti.append({"id": id_counter, "descrizione": d})
|
||||
id_counter += 1
|
||||
return redirect("/ui")
|
||||
return redirect("/ui")
|
||||
|
||||
app.run("0.0.0.0")
|
||||
Reference in new issue
Block a user