Skip to content

Commit 80faca4

Browse files
committed
🥅 Handle "value:" prefixes
1 parent 4094c7e commit 80faca4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/mindlogger_data_export/parsers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,11 @@ def parse(self, response: str) -> dict[str, Any]:
480480
"""Parse response string to dict."""
481481
return RESPONSE_VALUE_DICT_SCHEMA | {
482482
"type": "subscale",
483-
"subscale": float(response),
483+
"subscale": float(
484+
response.split("value:")[-1].strip()
485+
if response.startswith("value:")
486+
else response
487+
),
484488
}
485489

486490

0 commit comments

Comments
 (0)