Skip to content

Commit

Permalink
skip AnonymousUser_
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Jul 12, 2024
1 parent 381120e commit cf9c499
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ async def insert_data_v1(batch: list[Message], error_queue: Queue):
async def insert_data_v2(batch: list[Message], error_queue: Queue):
try:
highscores = [msg.hiscores for msg in batch if msg.hiscores]
players = [msg.player for msg in batch if msg.player]
players = [
msg.player
for msg in batch
if msg.player and not msg.player.name.startswith("AnonymousUser_")
]

logger.info(f"Received: {len(players)=}, {len(highscores)=}")

Expand Down

0 comments on commit cf9c499

Please sign in to comment.