Skip to content

Commit 6a7e194

Browse files
authored
fix: add "season_*" fields to csvs (#1155)
1 parent 4ea0fdc commit 6a7e194

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/Jobs/ExportGame.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class ExportGame implements ShouldQueue
1616

1717
public static array $header = [
1818
'Date',
19+
'SeasonNumber',
20+
'SeasonVersion',
1921
'Player',
2022
'MatchId',
2123
'Map',
@@ -72,6 +74,8 @@ public function handle(): array
7274

7375
$this->data[] = [
7476
$this->game->occurred_at->toIso8601ZuluString(),
77+
$this->game->season_number,
78+
$this->game->season_version,
7579
$gamePlayer->player->gamertag,
7680
$this->game->uuid,
7781
$this->game->map->name,

app/Jobs/ExportGameHistory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class ExportGameHistory implements ShouldQueue
2222

2323
public static array $header = [
2424
'Date',
25+
'SeasonNumber',
26+
'SeasonVersion',
2527
'Player',
2628
'MatchId',
2729
'Map',
@@ -128,6 +130,8 @@ public function handle(): array
128130

129131
$this->data[] = [
130132
$gamePlayer->game->occurred_at->toDateTimeString(),
133+
$gamePlayer->game->season_number,
134+
$gamePlayer->game->season_version,
131135
$gamePlayer->player->gamertag,
132136
$gamePlayer->game->uuid,
133137
$gamePlayer->game->map->name,

0 commit comments

Comments
 (0)