Skip to content

fix(data): Make CodeDesc.code optional - #343

Open
louisadamian wants to merge 1 commit into
zero-sum-seattle:mainfrom
louisadamian:fix-codedesc
Open

fix(data): Make CodeDesc.code optional#343
louisadamian wants to merge 1 commit into
zero-sum-seattle:mainfrom
louisadamian:fix-codedesc

Conversation

@louisadamian

Copy link
Copy Markdown
Contributor

Some play-by-play code description pairs come back from the api without a code. In game 777961 allPlays->68->playEvents->0->type has a description of "Unknown" and no code, so getting the play-by-play data fails on the required argument. Default to None instead.

Fixes #342

Some play-by-play code description pairs come back from the api without
a code. In game 777961 allPlays->68->playEvents->0->type has a
description of "Unknown" and no code, so getting the play-by-play data
fails on the required argument. Default to None instead.

Fixes zero-sum-seattle#342
@louisadamian louisadamian changed the title fix(data): Make CodeDesc.code optional. fix(data): Make CodeDesc.code optional Sep 7, 2026
@Mattsface

Copy link
Copy Markdown
Member

Okay let me take a look at this one man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CodeDesc code needs to be optional for some play by play data

2 participants