Skip to content

Commit

Permalink
last_element_min_time
Browse files Browse the repository at this point in the history
set to 0 if no min time set
  • Loading branch information
clavay authored and trombastic committed Nov 17, 2023
1 parent 83ae3f2 commit 9e156ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyscada/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def last_element(self, use_date_saved=True, **kwargs):
if "time_min" in kwargs:
time_min = kwargs.pop("time_min")
else:
time_min = time.time() - 3660
time_min = 0

if "time_max" in kwargs:
time_max = kwargs.pop("time_max")
Expand Down

0 comments on commit 9e156ba

Please sign in to comment.