Skip to content

Commit eb2ae1b

Browse files
committed
Handle liquidated company in cogc voter list
If a company is liquidated while their COG Vote is still present, their company code will be null.
1 parent 9892100 commit eb2ae1b

File tree

2 files changed

+204
-239
lines changed

2 files changed

+204
-239
lines changed

fio_wrapper/models/planet_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class COGCProgram(BaseModel):
3434

3535
class COGCVote(BaseModel):
3636
CompanyName: str
37-
CompanyCode: str
37+
CompanyCode: Optional[str] = Field(default=None)
3838
Influence: float
3939
VoteType: str
4040
VoteTimeEpochMs: datetime

0 commit comments

Comments
 (0)