Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Mar 17, 2024
1 parent 31f7925 commit f60feaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/v1/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,11 @@ async def insert_report(
# Get IDs for all unique valid names
data = await sql_select_players(valid_names)
logger.debug(f"Found players before insert: {len(data)}")
logger.debug(f"{data=}")

# Create entries for players that do not yet exist in Players table
existing_names = [d["normalized_name"] for d in data]
logger.debug(f"{existing_names=}")
logger.debug(f"{existing_names=}") # [NONE, NONE]
new_names = set([name for name in valid_names]).difference(existing_names)
logger.debug(f"{new_names=}")

Expand Down

0 comments on commit f60feaa

Please sign in to comment.