change date condition

This commit is contained in:
jb-alvarado 2021-02-03 16:23:13 +01:00
parent 36bce348c3
commit 7911359d82

View File

@ -651,7 +651,7 @@ def get_date(seek_day):
return (d - timedelta(1)).strftime('%Y-%m-%d')
else:
if _playlist.start == 0 and \
math.isclose(get_time('full_sec'), 86400.0, abs_tol=4):
4 > 86400.0 - get_time('full_sec') > 0:
return (d + timedelta(1)).strftime('%Y-%m-%d')
return d.strftime('%Y-%m-%d')