This commit is contained in:
Noe Brucy
2022-11-11 15:48:06 +01:00
parent d9a58d522a
commit facb37d753
2 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -336,7 +336,7 @@ class RunSelector:
def try_load_info(num):
return True
# -- Time getter according to unit_times
# -- Time getter according to unit_time
if unit_time is None:
def get_time(num):
@@ -437,13 +437,13 @@ class RunSelector:
nums = []
# -- Select according to time --
if time_min is not None:
if time_min is not None and len(nums) > 0:
imin = search(nums, time_min, "right")
if imin is not None:
nums = nums[imin:]
else:
nums = []
if time_max is not None:
if time_max is not None and len(nums) > 0:
imax = search(nums, time_max, "left")
if imax is not None:
nums = nums[: imax + 1]