~kf5jwc/sms-printer-parser-bandwidth

999047c20d3fa1b923f6a53e2356ea71628f2bc7 — Kyle Jones 1 year, 1 month ago 5dfc9ff
Fixed parser

There is only one message delivered in this format, nothing to loop over.
1 files changed, 2 insertions(+), 1 deletions(-)

M sms_printer/parsers/bandwidth_v1/parser.py
M sms_printer/parsers/bandwidth_v1/parser.py => sms_printer/parsers/bandwidth_v1/parser.py +2 -1
@@ 10,4 10,5 @@ class Message(object):


def parse(messages: str) -> List[Message]:
    return [Message(msg["from"], msg["text"]) for msg in json_load(messages)]
    msg = json_load(messages)
    return [Message(msg["from"], msg["text"])]