From a58565324c4e5d1d4b143dc86958ef43827d6ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 16 May 2022 21:08:45 +0200 Subject: [PATCH] fixxed typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f402d39..4a6eace 100644 --- a/main.py +++ b/main.py @@ -1,6 +1,8 @@ import time import os from datetime import datetime + +from requests import request try: from rpi_ws281x import * import RPi.GPIO as GPIO @@ -115,7 +117,7 @@ if __name__ == '__main__': @app.route('/mode', methods=['GET']) def mode(): - args = request.args + args = request.args() mode = args.get('mode') r = args.get('r') g = args.get('g')