Bug fixes
This commit is contained in:
parent
b03cf19bf7
commit
eca69fe13c
@ -436,8 +436,8 @@ class CardColumn(pydantic.BaseModel):
|
||||
self.two.assign_play(play)
|
||||
return chances, 0
|
||||
elif not self.twelve.is_full():
|
||||
self.five.result_one = play.full_name
|
||||
self.twelve.result_one = play.full_name
|
||||
self.five.assign_play(play)
|
||||
self.twelve.assign_play(play)
|
||||
return chances, 0
|
||||
|
||||
# Plus one
|
||||
|
||||
@ -589,9 +589,12 @@ async def get_batting_totals(
|
||||
x['player_cardset'] = x['player']['cardset']['name']
|
||||
x['team_id'] = x['team']['id']
|
||||
x['team_abbrev'] = x['team']['abbrev']
|
||||
x['game_id'] = x['game']['id']
|
||||
x['game_type'] = x['game']['game_type']
|
||||
del x['player'], x['team'], x['game']
|
||||
if 'id' in x['game']:
|
||||
x['game_id'] = x['game']['id']
|
||||
if 'game_type' in x['game']:
|
||||
x['game_type'] = x['game']['game_type']
|
||||
del x['game']
|
||||
del x['player'], x['team']
|
||||
|
||||
output = pd.DataFrame(return_vals)
|
||||
first = ['player_id', 'player_name', 'player_cardset', 'team_id', 'team_abbrev']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user