Skip to content

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

Merged
Mattsface merged 1 commit into
zero-sum-seattle:mainfrom
louisadamian:fix-codedesc
Sep 23, 2026
Merged

Mattsface merged 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

@Mattsface
Mattsface merged commit 3bb302e into zero-sum-seattle:main Sep 23, 2026
7 of 8 checks passed
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