Update helpers.py

Update team paperdex embed descriptions
This commit is contained in:
Cal Corum 2023-02-26 15:40:02 -06:00
parent 065382b57b
commit 281d33c550

View File

@ -2208,8 +2208,8 @@ def paperdex_team_embed(team: dict, mlb_team: dict) -> [discord.Embed]:
for cardset_id in coll_data: for cardset_id in coll_data:
if cardset_id != 'total_owned': if cardset_id != 'total_owned':
if coll_data[cardset_id]['players']: if coll_data[cardset_id]['players']:
coll_data[cardset_id]['embeds'][0].description = f'Team: {coll_data[cardset_id]["name"]} ' \ coll_data[cardset_id]['embeds'][0].description = f'{mlb_team["lname"]} / ' \
f'{mlb_team["lname"]}' f'{coll_data[cardset_id]["name"]}'
coll_data[cardset_id]['embeds'][0].add_field( coll_data[cardset_id]['embeds'][0].add_field(
name='# Collected / # Total Cards', name='# Collected / # Total Cards',
value=f'{coll_data[cardset_id]["owned"]} / {len(coll_data[cardset_id]["players"])}', value=f'{coll_data[cardset_id]["owned"]} / {len(coll_data[cardset_id]["players"])}',