fix: UI for connected
This commit is contained in:
parent
f8d578e6aa
commit
d619b965e7
2 changed files with 18 additions and 22 deletions
|
|
@ -24,10 +24,6 @@ all_routers: list[NostrRouter] = []
|
|||
async def api_get_relays() -> RelayList:
|
||||
relays = RelayList(__root__=[])
|
||||
for url, r in nostr.client.relay_manager.relays.items():
|
||||
# status_text = (
|
||||
# f"⬆️ {r.num_sent_events} ⬇️ {r.num_received_events} ⚠️ {r.error_counter}"
|
||||
# )
|
||||
# connected_text = "🟢" if r.connected else "🔴"
|
||||
relay_id = urlsafe_short_hash()
|
||||
relays.__root__.append(
|
||||
Relay(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue