Skip to content

Commit

Permalink
Include username in Ark top-level CSV archives (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki authored Oct 1, 2024
1 parent 7d2fa4b commit 8b5cbe3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ark_nova_stats/worker/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def csv_field_names(self) -> list[str]:
return [
"bga_table_id",
"user_id",
"user_name",
"prior_elo",
"new_elo",
"prior_arena_elo",
Expand Down Expand Up @@ -391,6 +392,7 @@ def process_game_log(self, game_log: GameLog) -> None:
row = {k: None for k in self.csv_field_names}
row["bga_table_id"] = game_log.bga_table_id
row["user_id"] = user.bga_id
row["user_name"] = user.name

for rating in game_log.game_ratings:
if rating.user_id == user.bga_id:
Expand Down

0 comments on commit 8b5cbe3

Please sign in to comment.