Fixxed function caller in the API
parent
0e058b3b1c
commit
ee5d2fd3be
4
main.py
4
main.py
|
@ -18,9 +18,9 @@ app = Flask(__name__)
|
||||||
def index():
|
def index():
|
||||||
command = str(request.args.get('command'))
|
command = str(request.args.get('command'))
|
||||||
if command == "switch-ilde-mode":
|
if command == "switch-ilde-mode":
|
||||||
change_idle_mode()
|
change_idle_mode
|
||||||
elif command == "switch-toggle-on-off":
|
elif command == "switch-toggle-on-off":
|
||||||
power_toggle()
|
power_toggle
|
||||||
|
|
||||||
return command
|
return command
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue