trying to fix this

This commit is contained in:
Sean Corrigan 2020-12-24 15:01:36 -05:00
parent d50abf3e7a
commit dc3e24135e

View File

@ -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()