Add connected introducers renderer

This commit is contained in:
Sajith Sasidharan 2020-04-28 07:17:22 -04:00
parent 164218cf57
commit 2f53b2a67d

View File

@ -333,6 +333,10 @@ class RootElement(Element):
return len([1 for cs in self._client.introducer_connection_statuses()
if cs.connected])
@renderer
def connected_introducers(self, req, tag):
return tag(str(self._connected_introducers()))
@renderer
def connected_to_at_least_one_introducer(self, req, tag):
if self._connected_introducers():