Comment 2 for bug 2009636

Revision history for this message
themusicgod1 (themusicgod1) wrote :

this should do :

in toot/output.py:

def print_account(account):
...
    if account["fields"]:
        for field in account["fields"]:
            name = field["name"].title()
            print_out(f'\n<yellow>{name}</yellow>:')
            print_html(field["value"])
            try:
               if field["verified_at"]:
                   print_out("<green>✓ Verified</green>")
            except KeyError as e:
                print_out("<red>not verified: verified_at missing</red>")

    print_out("")
    print_out(account["url"])