Skip to content

Commit

Permalink
it sorts by game so swap those columns
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Jul 17, 2024
1 parent 72e3e88 commit f0b2d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,8 @@ def dump_player_options(multiworld: MultiWorld) -> None:
for player in players:
world = multiworld.worlds[player]
player_output = {
"name": multiworld.get_player_name(player),
"game": multiworld.game[player],
"name": multiworld.get_player_name(player),
}
output.append(player_output)
for option_key, option in world.options_dataclass.type_hints.items():
Expand All @@ -1513,7 +1513,7 @@ def dump_player_options(multiworld: MultiWorld) -> None:
all_options.add(display_name)

with open(output_path(f"generate_{multiworld.seed_name}.csv"), mode="w") as file:
fields = ["name", "game", *sorted(all_options)]
fields = ["game", "name", *sorted(all_options)]
writer = DictWriter(file, fields)
writer.writeheader()
writer.writerows(output)
Expand Down

0 comments on commit f0b2d82

Please sign in to comment.