Update helpers.py
Update team paperdex embed descriptions
This commit is contained in:
parent
065382b57b
commit
281d33c550
@ -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"])}',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user