logged messages using minutes instead of seconds
This commit is contained in:
parent
aeb6c1e907
commit
befbdf8675
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue