From 2892eb8ace6703ec76bceccafd6c315b3e61ccf9 Mon Sep 17 00:00:00 2001 From: James Woglom Date: Wed, 16 Oct 2024 21:13:41 -0400 Subject: [PATCH] exclude empty pump profile segments --- tconnectsync/domain/tandemsource/pump_settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tconnectsync/domain/tandemsource/pump_settings.py b/tconnectsync/domain/tandemsource/pump_settings.py index ac08f9d..b2db24c 100644 --- a/tconnectsync/domain/tandemsource/pump_settings.py +++ b/tconnectsync/domain/tandemsource/pump_settings.py @@ -25,6 +25,9 @@ class PumpProfile: carbEntry: int # 1 / 0 maxBolus: int # milliunits + def __post_init__(self): + self.tDependentSegs = [i for i in self.tDependentSegs if not i.skip] + @dataclass_json @dataclass class PumpProfiles: