From d50abf3e7a1d4e03040f24d6ba04cd7bbe055508 Mon Sep 17 00:00:00 2001 From: Sean Corrigan Date: Thu, 24 Dec 2020 15:00:43 -0500 Subject: [PATCH] too many messages? --- PIcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIcontroller.py b/PIcontroller.py index b664226..38a4f41 100644 --- a/PIcontroller.py +++ b/PIcontroller.py @@ -39,7 +39,7 @@ def main(): response = requests.get("{}/queue?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode() response = listfromAPI(response) if response == None: return - if len(response) == 1: + if len(response) => 1: sendUpdate(fixformatting(response[0])) requests.get("{}/clear?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode()