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