Show only registration date on whois

Time is not that relevant and causes noise
This commit is contained in:
Ivan Habunek 2022-12-12 12:36:36 +01:00
parent 0ab0db048c
commit ef697c3bee
No known key found for this signature in database
GPG key ID: F5F0623FF5EBCB3D
2 changed files with 2 additions and 2 deletions

View file

@ -472,7 +472,7 @@ def test_whoami(mock_get, capsys):
assert "A developer." in out
assert "https://mastodon.social/@ihabunek" in out
assert "ID: 46103" in out
assert "Since: 2017-04-04 @ 13:23:09" in out
assert "Since: 2017-04-04" in out
assert "Followers: 5" in out
assert "Following: 9" in out
assert "Statuses: 19" in out

View file

@ -177,7 +177,7 @@ def print_account(account):
print_out("")
print_out("ID: <green>{}</green>".format(account['id']))
print_out("Since: <green>{}</green>".format(account['created_at'][:19].replace('T', ' @ ')))
print_out("Since: <green>{}</green>".format(account['created_at'][:10]))
print_out("")
print_out("Followers: <yellow>{}</yellow>".format(account['followers_count']))
print_out("Following: <yellow>{}</yellow>".format(account['following_count']))