Bugfix: comparing timedeltas.
This commit is contained in:
parent
caab3c6a82
commit
9fce40e74d
|
|
@ -114,7 +114,7 @@ def start_abyssal_beasts():
|
|||
print("Pressed space - looting")
|
||||
delta_to_dose_end = dose_ends_at - datetime.now()
|
||||
print(f"Time until dose ends: {delta_to_dose_end}")
|
||||
if (delta_to_dose_end.total_seconds() < timedelta(seconds=60)):
|
||||
if (delta_to_dose_end.total_seconds() < timedelta(seconds=60).total_seconds()):
|
||||
print("Reduced sleep")
|
||||
random_sleep_between(25_000, 40_000)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue