Stop if we run out of tickmark frequencies

This commit is contained in:
Peter J. Holzer 2023-02-04 12:16:37 +01:00 committed by Peter J. Holzer
parent 62b22d7516
commit d3a439bb49
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class TimeSeries(Widget):
min_step = 25
steps = ("s", "m", "h", "D", "10D", "M", "Y")
step_i = 0
while True:
while step_i < len(steps):
t0 = tickmarks[-1]["t"]
x0 = tickmarks[-1]["x"]
d0 = datetime.datetime.fromtimestamp(t0)