1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-30 15:43:07 +00:00

Removed redundant code

This commit is contained in:
SecretlyTaco 2016-09-13 01:30:17 +01:00
parent 97f9f108c3
commit 30404fbd8f

View file

@ -55,7 +55,7 @@ def top_players():
for player_elem in box.select("> div"):
player = {}
player_link = player_elem.find('a')
player['name'] = player_link.text.replace(")", ") ")
player['name'] = player_link.text
p_url = player_link['href']
player['player-id'] = converters.to_int(p_url[p_url.index('playerid=')+9:p_url.index('&statsfilter')])
player['stat'] = player_elem.select('div:nth-of-type(2)')[0].text