From f15b7402c18aea7ab69af7b35a85779500bb410d Mon Sep 17 00:00:00 2001 From: Sean Corrigan Date: Thu, 24 Dec 2020 15:14:38 -0500 Subject: [PATCH] comma issues --- PIcontroller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PIcontroller.py b/PIcontroller.py index 03163d3..6a06da7 100644 --- a/PIcontroller.py +++ b/PIcontroller.py @@ -15,6 +15,9 @@ def listfromAPI(message): if mess[0] == " ": queueList.append(mess[1:]) continue + if mess[-1] == ",": # get rid of random last comma + queueList.append(mess[1:]) + continue queueList.append(mess) return queueList