Merge pull request #36 from NotNalin/main

fix for list_servers() returning an empty list
This commit is contained in:
Andrey 2022-07-03 19:09:01 +04:00 committed by GitHub
commit 3fa3b592a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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