From 0c1d98f2abea04206dfdb2aa77050164dfdffe4d Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Mon, 4 Nov 2019 17:44:35 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/ui/web.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/ui/web.py b/pwnagotchi/ui/web.py index 294ae8e..3f1dc48 100644 --- a/pwnagotchi/ui/web.py +++ b/pwnagotchi/ui/web.py @@ -126,8 +126,9 @@ class Handler(BaseHTTPRequestHandler): other_mode = 'AUTO' if Agent.INSTANCE.mode == 'manual' else 'MANU' self._html(INDEX % ( pwnagotchi.name(), - 1000, other_mode, - other_mode)) + other_mode, + other_mode, + 1000)) # serve a message and shuts down the unit def _shutdown(self): @@ -135,7 +136,7 @@ class Handler(BaseHTTPRequestHandler): pwnagotchi.shutdown() # serve a message and restart the unit in the other mode - def _reboot(self): + def _restart(self): other_mode = 'AUTO' if Agent.INSTANCE.mode == 'manual' else 'MANU' self._html(STATUS_PAGE % (pwnagotchi.name(), 'Restart in %s mode ...' % other_mode)) pwnagotchi.restart(other_mode)