From e06fadaecc7385139e4892aa635d6721ba441614 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Thu, 7 Jan 2016 15:37:36 +0000 Subject: [PATCH] put remaining text in 'comment' for wx prase --- aprslib/parsing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aprslib/parsing.py b/aprslib/parsing.py index b533077..5171f2d 100644 --- a/aprslib/parsing.py +++ b/aprslib/parsing.py @@ -248,7 +248,10 @@ def parse(packet): if parsed['symbol'] == '_': logger.debug("Attempting to parse weather report from comment") body, result = _parse_comment_weather(body) - parsed.update({'weather': result}) + parsed.update({ + 'comment': body.strip(' '), + 'weather': result, + }) else: # decode comment body, result = _parse_comment(body)