Skip to content

Commit

Permalink
Merge pull request #36 from Jylpah/dev
Browse files Browse the repository at this point in the history
PlayerData.death_reason defaults to -1 (survived)
  • Loading branch information
Jylpah authored Jan 20, 2024
2 parents 52a45d2 + 5b23d36 commit 445bb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blitzmodels/wotinspector/wi_apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class PlayerData(JSONExportable):
damage_made : int = Field(default=0, alias='dm')
damage_received : int = Field(default=0, alias='dr')
dbid : int = Field(default=..., alias='id') # is 'ai' in v1 !!
death_reason : int | None= Field(default=None, alias='de')
death_reason : int = Field(default=-1, alias='de') # None option removed 1.2.8
distance_travelled : int = Field(default=0, alias='dt')
enemies_damaged : int = Field(default=0, alias='ed')
enemies_destroyed : int = Field(default=0, alias='ek')
Expand Down

0 comments on commit 445bb60

Please sign in to comment.