parent
a58565324c
commit
efe28e1793
8
main.py
8
main.py
|
@ -118,10 +118,10 @@ if __name__ == '__main__':
|
||||||
@app.route('/mode', methods=['GET'])
|
@app.route('/mode', methods=['GET'])
|
||||||
def mode():
|
def mode():
|
||||||
args = request.args()
|
args = request.args()
|
||||||
mode = args.get('mode')
|
mode = str(args.get('mode'))
|
||||||
r = args.get('r')
|
r = str(args.get('r'))
|
||||||
g = args.get('g')
|
g = str(args.get('g'))
|
||||||
b = args.get('b')
|
b = str(args.get('b'))
|
||||||
if mode is None:
|
if mode is None:
|
||||||
return 'No mode specified'
|
return 'No mode specified'
|
||||||
elif mode == "":
|
elif mode == "":
|
||||||
|
|
Loading…
Reference in New Issue