removing a streams must never be pre-dated

This commit is contained in:
2025-05-20 17:29:00 +02:00
parent 6ffcf92aaf
commit 7b9a03eaa6

View File

@@ -381,6 +381,7 @@ class SEHistory(InfluxDBWrapper):
:param ts: the time or None when now :param ts: the time or None when now
""" """
flag = value is not None flag = value is not None
if flag:
try: try:
previns, prevts = self.get_instrument(stream, ts, **tags) previns, prevts = self.get_instrument(stream, ts, **tags)
if prevts is not None and (previns is None or (ts or 1e10) < prevts): if prevts is not None and (previns is None or (ts or 1e10) < prevts):