fix: UI for connected

This commit is contained in:
Vlad Stan 2023-06-26 12:59:58 +03:00
parent f8d578e6aa
commit d619b965e7
2 changed files with 18 additions and 22 deletions

View file

@ -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(