Update helpers.py
Added new PD graphics
This commit is contained in:
parent
a83bc10581
commit
1a36b60565
@ -64,6 +64,7 @@ IMAGES = {
|
|||||||
'mvp-hype': f'{PD_CARD_URL}/mvp.png',
|
'mvp-hype': f'{PD_CARD_URL}/mvp.png',
|
||||||
'pack-sta': f'{PD_CARD_URL}/pack-standard.png',
|
'pack-sta': f'{PD_CARD_URL}/pack-standard.png',
|
||||||
'pack-pre': f'{PD_CARD_URL}/pack-premium.png',
|
'pack-pre': f'{PD_CARD_URL}/pack-premium.png',
|
||||||
|
'pack-mar': f'{PD_CARD_URL}/mario/mario-gauntlet.png',
|
||||||
'mvp': {
|
'mvp': {
|
||||||
'Arizona Diamondbacks': f'{PD_CARD_URL}/mvp/arizona-diamondbacks.gif',
|
'Arizona Diamondbacks': f'{PD_CARD_URL}/mvp/arizona-diamondbacks.gif',
|
||||||
'Atlanta Braves': f'{PD_CARD_URL}/mvp/atlanta-braves.gif',
|
'Atlanta Braves': f'{PD_CARD_URL}/mvp/atlanta-braves.gif',
|
||||||
@ -97,7 +98,8 @@ IMAGES = {
|
|||||||
'Texas Rangers': f'{PD_CARD_URL}/mvp/texas-rangers.gif',
|
'Texas Rangers': f'{PD_CARD_URL}/mvp/texas-rangers.gif',
|
||||||
'Toronto Blue Jays': f'{PD_CARD_URL}/mvp/toronto-blue-jays.gif',
|
'Toronto Blue Jays': f'{PD_CARD_URL}/mvp/toronto-blue-jays.gif',
|
||||||
'Washington Nationals': f'{PD_CARD_URL}/mvp/washington-nationals.gif',
|
'Washington Nationals': f'{PD_CARD_URL}/mvp/washington-nationals.gif',
|
||||||
}
|
},
|
||||||
|
'gauntlets': f'{PD_CARD_URL}/gauntlets.png'
|
||||||
}
|
}
|
||||||
INFIELD_X_CHART = {
|
INFIELD_X_CHART = {
|
||||||
'si1': {
|
'si1': {
|
||||||
@ -1345,7 +1347,7 @@ def get_all_pos(player):
|
|||||||
all_pos = []
|
all_pos = []
|
||||||
|
|
||||||
for x in range(1, 8):
|
for x in range(1, 8):
|
||||||
if player[f'pos_{x}'] and player[f'pos_{x}'] != 'CP':
|
if player[f'pos_{x}']:
|
||||||
all_pos.append(player[f'pos_{x}'])
|
all_pos.append(player[f'pos_{x}'])
|
||||||
|
|
||||||
return all_pos
|
return all_pos
|
||||||
@ -2539,6 +2541,8 @@ def get_pack_cover(pack):
|
|||||||
return IMAGES['pack-pre']
|
return IMAGES['pack-pre']
|
||||||
elif pack['pack_type']['name'] == 'Standard':
|
elif pack['pack_type']['name'] == 'Standard':
|
||||||
return IMAGES['pack-sta']
|
return IMAGES['pack-sta']
|
||||||
|
elif pack['pack_type']['name'] == 'Mario':
|
||||||
|
return IMAGES['pack-mar']
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user