From 0e535a3fd031fc7ce66859708910fa412f2b114a Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Fri, 3 Feb 2023 05:43:29 +0100 Subject: [PATCH] Make tags a bit less verbose --- toot/tui/overlays.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/toot/tui/overlays.py b/toot/tui/overlays.py index 2b65676..41d9901 100644 --- a/toot/tui/overlays.py +++ b/toot/tui/overlays.py @@ -226,8 +226,6 @@ class Account(urwid.ListBox): urwid.connect_signal(text, "click", lambda t: webbrowser.open(url)) return urwid.AttrMap(text, "", attr_map) - -# source = json.dumps(account, indent=4) yield urwid.Text([('green', f"@{account['acct']}"), (f" {account['display_name']}")]) if account["note"]: @@ -241,13 +239,13 @@ class Account(urwid.ListBox): yield urwid.Divider() if account["bot"]: - yield urwid.Text([("Bot: "), ("green", "True \N{robot face}")]) + yield urwid.Text([("green", "Bot \N{robot face}")]) yield urwid.Divider() if account["locked"]: - yield urwid.Text([("Locked: "), ("warning", "True \N{lock}")]) + yield urwid.Text([("warning", "Locked \N{lock}")]) yield urwid.Divider() if "suspended" in account and account["suspended"]: - yield urwid.Text([("Suspended: "), ("warning", "True \N{cross mark}")]) + yield urwid.Text([("warning", "Suspended \N{cross mark}")]) yield urwid.Divider() yield urwid.Text([("Followers: "), ("yellow", f"{account['followers_count']}")])