1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Removed unneeded parenthesis

This commit is contained in:
Daniel Schwarz 2023-02-14 22:21:04 -05:00
parent ef2c35eaee
commit 41a8c33409

View File

@ -211,7 +211,7 @@ class Account(urwid.ListBox):
super().__init__(walker) super().__init__(walker)
def generate_contents(self, account): def generate_contents(self, account):
yield urwid.Text([('green', f"@{account['acct']}"), (f" {account['display_name']}")]) yield urwid.Text([('green', f"@{account['acct']}"), f" {account['display_name']}"])
if account["note"]: if account["note"]:
yield urwid.Divider() yield urwid.Divider()
@ -219,8 +219,8 @@ class Account(urwid.ListBox):
yield urwid.Text(highlight_hashtags(line, followed_tags=set())) yield urwid.Text(highlight_hashtags(line, followed_tags=set()))
yield urwid.Divider() yield urwid.Divider()
yield urwid.Text([("ID: "), ("green", f"{account['id']}")]) yield urwid.Text(["ID: ", ("green", f"{account['id']}")])
yield urwid.Text([("Since: "), ("green", f"{account['created_at'][:10]}")]) yield urwid.Text(["Since: ", ("green", f"{account['created_at'][:10]}")])
yield urwid.Divider() yield urwid.Divider()
if account["bot"]: if account["bot"]:
@ -233,15 +233,15 @@ class Account(urwid.ListBox):
yield urwid.Text([("warning", "Suspended \N{cross mark}")]) yield urwid.Text([("warning", "Suspended \N{cross mark}")])
yield urwid.Divider() yield urwid.Divider()
yield urwid.Text([("Followers: "), ("yellow", f"{account['followers_count']}")]) yield urwid.Text(["Followers: ", ("yellow", f"{account['followers_count']}")])
yield urwid.Text([("Following: "), ("yellow", f"{account['following_count']}")]) yield urwid.Text(["Following: ", ("yellow", f"{account['following_count']}")])
yield urwid.Text([("Statuses: "), ("yellow", f"{account['statuses_count']}")]) yield urwid.Text(["Statuses: ", ("yellow", f"{account['statuses_count']}")])
if account["fields"]: if account["fields"]:
for field in account["fields"]: for field in account["fields"]:
name = field["name"].title() name = field["name"].title()
yield urwid.Divider() yield urwid.Divider()
yield urwid.Text([("yellow", f"{name.rstrip(':')}"), (":")]) yield urwid.Text([("yellow", f"{name.rstrip(':')}"), ":"])
for line in format_content(field["value"]): for line in format_content(field["value"]):
yield urwid.Text(highlight_hashtags(line, followed_tags=set())) yield urwid.Text(highlight_hashtags(line, followed_tags=set()))
if field["verified_at"]: if field["verified_at"]: