Results: Reach: Keep profiles global min and max.

This commit is contained in:
parouby committed 2026-06-26 16:51:58 +02:00
1 parent 0501ae9bec
commit 662a218e41
1 file changed
+9
+9
View File
@@ -304,6 +304,9 @@ class Reach(SQLSubModel):
lambda p: p.name[0:8] != 'interpol', self._profiles
)
)
self._global_index = (-1, -1)
self._buffers = {}
def __len__(self):
@@ -333,9 +336,15 @@ class Reach(SQLSubModel):
return self._profiles[id]
def set_global_index(self, indexs):
self._global_index = (indexs[0], indexs[-1])
for profile, ind in zip(self._profiles, indexs):
profile.global_index = ind
@property
def global_index(self):
return self._global_index
@timer
def set(self, profile_id, timestamp, key, data):
self._profiles[profile_id].set(timestamp, key, data)