1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-30 07:33:09 +00:00
This commit is contained in:
JoeM PC 2024-04-25 14:51:56 +01:00
parent 8c561f454d
commit 6c9117211d

View file

@ -607,7 +607,7 @@ def get_past_player_stats_for_match(match_id):
if player.find('a'): ## Deals with teams using standin only have 4 roster players
match_stats[f'player{5*i+j}_id'] = player.find('a').get('href').split('/')[3]
match_stats[f'player{5*i+j}_rating'] = player.find_all('td')[-1].text
match_stats[f'player{5*i+j}_kd'] = player.find('td', attrs = {'class': "statsDetail"}).text
match_stats[f'player{5*i+j}_kd'] = player.find_all('td', attrs = {'class': "statsDetail"})[-1].text
else:
match_stats[f'player{5*i+j}_id'] = None
match_stats[f'player{5*i+j}_rating'] = None