Merge pull request 'fix: remove dead roster fields from CSV in v1_cards_get_one (#25)' (#35) from ai/paper-dynasty-database-25 into next-release

Reviewed-on: #35
This commit is contained in:
cal 2026-03-03 21:45:14 +00:00
commit 215c48a53e

View File

@ -141,9 +141,8 @@ async def v1_cards_get_one(card_id, csv: Optional[bool] = False):
if csv:
data_list = [
['id', 'player', 'team', 'pack', 'value', 'roster1', 'roster2', 'roster3'],
[this_card.id, this_card.player, this_card.team.abbrev, this_card.pack, this_card.value,
this_card.roster1.name, this_card.roster2.name, this_card.roster3.name]
['id', 'player', 'team', 'pack', 'value'],
[this_card.id, this_card.player, this_card.team.abbrev, this_card.pack, this_card.value]
]
return_val = DataFrame(data_list).to_csv(header=False, index=False)