too many messages?

This commit is contained in:
Sean Corrigan 2020-12-24 15:00:43 -05:00
parent 653bb3122c
commit d50abf3e7a

View File

@ -39,7 +39,7 @@ def main():
response = requests.get("{}/queue?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode() response = requests.get("{}/queue?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode()
response = listfromAPI(response) response = listfromAPI(response)
if response == None: return if response == None: return
if len(response) == 1: if len(response) => 1:
sendUpdate(fixformatting(response[0])) sendUpdate(fixformatting(response[0]))
requests.get("{}/clear?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode() requests.get("{}/clear?api={}".format(LoveBOXAPIurl,LoveBOXAPIapi), verify=True).content.decode()