Merge pull request #43 from Ruochenfu2011/patch-1

Fixing xpath for parsing servers
This commit is contained in:
Andrey 2022-08-01 16:14:02 +04:00 committed by GitHub
commit 1055628241
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,8 +193,7 @@ class Client:
serverstree = lxml.html.fromstring(serverspage.content)
servers = serverstree.xpath(
'//div[@class="servers"]/div'
'/div[@class="server-body"]/@data-id'
'//div[@class="server-body"]/@data-id'
)
self.refresh_servers(servers)