Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Add new limit for getting Playground games.
Browse files Browse the repository at this point in the history
  • Loading branch information
masterking32 committed Aug 15, 2024
1 parent 7e71df4 commit dc851ef
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,16 @@ def StartPlaygroundGame(self):
)
return

promo_count = 0
for promo in response["promos"]:
promo_count += 1

if promo_count > self.GetConfig("max_promo_games_per_round", 3):
log.info(
f"[{self.account_name}] Maximum number of playground games reached. We will retrieve other games in the next run."
)
break

if promo[
"promoId"
] in SupportedPromoGames and self.CheckPlayGroundGameState(promo, response):
Expand Down Expand Up @@ -1027,7 +1036,7 @@ def GetPlayGroundGameKey(self, promoData):
response = None

retryCount = 0
while retryCount < 15:
while retryCount < 8:
retryCount += 1
eventID = str(uuid.uuid4())

Expand Down

0 comments on commit dc851ef

Please sign in to comment.