mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 08:48:01 +00:00
Add connected introducers renderer
This commit is contained in:
parent
164218cf57
commit
2f53b2a67d
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user