logged messages using minutes instead of seconds

This commit is contained in:
mcinj 2022-04-28 19:30:57 -04:00
parent aeb6c1e907
commit befbdf8675

View file

@ -183,14 +183,15 @@ class SteamGifts:
logger.info(txt) logger.info(txt)
else: else:
random_seconds = randint(900, 1400) random_seconds = randint(900, 1400)
txt = f"You have {self.points} points which is below your minimum point threshold of {self.min_points} points. Sleeping for {random_seconds} seconds." txt = f"You have {self.points} points which is below your minimum point threshold of " \
f"{self.min_points} points. Sleeping for {random_seconds / 60} minutes."
logger.info(txt) logger.info(txt)
sleep(random_seconds) sleep(random_seconds)
while True: while True:
self.evaluate_giveaways() self.evaluate_giveaways()
random_seconds = randint(900, 1400) random_seconds = randint(900, 1400)
logger.info(f"Going to sleep for {random_seconds} seconds.") logger.info(f"Going to sleep for {random_seconds / 60 } minutes.")
sleep(random_seconds) sleep(random_seconds)
self.update_info() self.update_info()