fix for list_servers() returning an empty list

This commit is contained in:
Nalin 2022-07-01 22:53:43 +04:00 committed by GitHub
parent 9c8e3a7ec8
commit 913ff68e1e
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)