Secured future date input + min(end,now) for complete_to_end

This commit is contained in:
l_samenv
2024-08-14 10:33:50 +02:00
parent 5735fe9f01
commit f4cf8fd9a5
2 changed files with 7 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class InfluxGraph:
result = self.influx_data_getter.get_curves_in_timerange(self.variables, self.time, interval)
self.strip_future(result)
self.complete_to_end(result, end)
self.complete_to_end(result, min(end, now))
self.time[0] = self.time[1]
# reduction not yet implemented
return dict(type='graph-draw', reduced=False, graph=result)