Skip to content

Commit

Permalink
ClashKing v4
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Jan 29, 2024
1 parent 9a44842 commit 43b342d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracking/player/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,15 @@ async def main(keys: deque, cache: redis.Redis, stats_mongo_client, static_mongo
player_search = static_mongo_client.usafam.player_search


loop_spot = 0
loop_spot = -1
while True:
try:
loop_spot += 1
CLAN_MEMBERS, clan_tag_set = await get_clan_member_tags(clan_db=clan_db, keys=keys)
all_tags = await get_tags_to_track(CLAN_MEMBERS=CLAN_MEMBERS, loop_spot=loop_spot, player_stats=player_stats)
await add_new_autocomplete_additions(cache=cache, all_tags=all_tags, player_search=player_search)

logger.info(f"{len(all_tags)} tags")
logger.info(f"LOOP{loop_spot}: {len(all_tags)} tags")
split_tags = [all_tags[i:i + config.max_tag_split] for i in range(0, len(all_tags), config.max_tag_split)]
logger.info(f"{len(split_tags)} tag groups created")

Expand Down

0 comments on commit 43b342d

Please sign in to comment.