From ef697c3bee18f6f08fa3bd45b31ed94844c1f5ca Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Mon, 12 Dec 2022 12:36:36 +0100 Subject: [PATCH] Show only registration date on whois Time is not that relevant and causes noise --- tests/test_console.py | 2 +- toot/output.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_console.py b/tests/test_console.py index a985b45..5601841 100644 --- a/tests/test_console.py +++ b/tests/test_console.py @@ -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 diff --git a/toot/output.py b/toot/output.py index 0c74f61..38b69ec 100644 --- a/toot/output.py +++ b/toot/output.py @@ -177,7 +177,7 @@ def print_account(account): print_out("") print_out("ID: {}".format(account['id'])) - print_out("Since: {}".format(account['created_at'][:19].replace('T', ' @ '))) + print_out("Since: {}".format(account['created_at'][:10])) print_out("") print_out("Followers: {}".format(account['followers_count'])) print_out("Following: {}".format(account['following_count']))