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"):
|
||||
dom.create()
|
||||
return "<p>Started succesfully!</p>"
|
||||
return "<p>Started "+request.forms.get('username')+" succesfully!</p><a href='/action'>back</a>"
|
||||
elif (act == "stop"):
|
||||
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"):
|
||||
dom.destroy()
|
||||
return "<p>Stopped</p> <button href='action'>"
|
||||
return "<p>Destroyed "+request.forms.get('username')+"</p> <a href='/action'>back</a>"
|
||||
else:
|
||||
return "Error"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user