From b10cf085570ad961f9119b06cdb0f21be5063e38 Mon Sep 17 00:00:00 2001 From: Rato Date: Sat, 22 Jun 2024 19:22:52 +0200 Subject: [PATCH] Minor enhancement for #87 --- knowit/rules/audio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowit/rules/audio.py b/knowit/rules/audio.py index 6c3504b..bcc4c7e 100644 --- a/knowit/rules/audio.py +++ b/knowit/rules/audio.py @@ -53,7 +53,7 @@ def execute(self, props, pv_props, context): c = Decimal('0.0') for i in position.split('/'): try: - c += Decimal(i) + c += Decimal(i.replace('.?', '')) except (ValueError, InvalidOperation): logger.debug('Invalid %s: %s', self.description, i) pass