beauty
This commit is contained in:
parent
8ec2b2be1d
commit
fa703b5f48
6
index.py
6
index.py
@ -38,13 +38,13 @@ def do_action():
|
|||||||
|
|
||||||
if (act == "start"):
|
if (act == "start"):
|
||||||
dom.create()
|
dom.create()
|
||||||
return "<p>Started succesfully!</p>"
|
return "<p>Started "+request.forms.get('username')+" succesfully!</p><a href='/action'>back</a>"
|
||||||
elif (act == "stop"):
|
elif (act == "stop"):
|
||||||
dom.shutdown()
|
dom.shutdown()
|
||||||
return "<p>Stopped</p> <button href='action'>"
|
return "<p>Stopped "+request.forms.get('username')+"</p> <a href='/action'>back</a>"
|
||||||
elif (act == "destroy"):
|
elif (act == "destroy"):
|
||||||
dom.destroy()
|
dom.destroy()
|
||||||
return "<p>Stopped</p> <button href='action'>"
|
return "<p>Destroyed "+request.forms.get('username')+"</p> <a href='/action'>back</a>"
|
||||||
else:
|
else:
|
||||||
return "Error"
|
return "Error"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user