Merge pull request #36 from NotNalin/main
fix for list_servers() returning an empty list
This commit is contained in:
commit
3fa3b592a2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue