1.0.0 : Web Implemented.
This commit is contained in:
@@ -659,6 +659,13 @@ class MatchParser:
|
||||
stats.team_id = team_id_value
|
||||
stats.kills = safe_int(get_stat('kill'))
|
||||
stats.deaths = safe_int(get_stat('death'))
|
||||
|
||||
# Force calculate K/D
|
||||
if stats.deaths > 0:
|
||||
stats.kd_ratio = stats.kills / stats.deaths
|
||||
else:
|
||||
stats.kd_ratio = float(stats.kills)
|
||||
|
||||
stats.assists = safe_int(get_stat('assist'))
|
||||
stats.headshot_count = safe_int(get_stat('headshot'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user