Bugfix: comparing timedeltas.

This commit is contained in:
Filip 2025-06-20 17:29:14 +02:00
parent caab3c6a82
commit 9fce40e74d

View file

@ -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: