From 720fd623c217a0072a00a9fcbac1dc7dc3418df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 1 Mar 2021 22:51:12 +0000 Subject: fslibre: don't drop the first and last characters of the comment. The comment string is already parsed out of the quotes (`""`) so there is no reason to drop the first and last characters, which might make the comment itself unreadable. --- glucometerutils/drivers/fslibre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glucometerutils/drivers/fslibre.py b/glucometerutils/drivers/fslibre.py index 07fc504..8b3b762 100644 --- a/glucometerutils/drivers/fslibre.py +++ b/glucometerutils/drivers/fslibre.py @@ -165,7 +165,7 @@ def _parse_arresult(record: Sequence[str]) -> Optional[common.AnyReading]: custom_comments = record[29:35] for comment_index in range(6): if parsed_record["custom-comments-bitfield"] & (1 << comment_index): - comment_parts.append(custom_comments[comment_index][1:-1]) + comment_parts.append(custom_comments[comment_index]) if parsed_record["sport-flag"]: comment_parts.append("Sport") -- cgit v1.2.3