Direct numbers are bad

This commit is contained in:
Li 2022-08-31 22:03:10 +12:00
parent d3498113c2
commit 301067be0d
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import json
PlayFab.GetEntityToken(PlayFab.LoginWithCustomId()['PlayFabId'], 'master_player_account')
MAX_SEARCH = 300
MAX_SKIP = 10000
# Get total number of items in marketplace
totalItems = PlayFab.Search("", "", "creationDate ASC", None, 1, 0)["Count"]
@ -33,7 +34,7 @@ while len(resultsDict) < totalItems:
skip += MAX_SEARCH
if skip > 10000:
if skip > MAX_SKIP:
searchFilter = "(CreationDate ge " + searchResults["Items"][-1]["CreationDate"] +")";
skip = 0