From a2e854568f6fe327a17c58a2a90d91b554c4b3c9 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 4 Jul 2019 23:53:45 -0700 Subject: [PATCH] cli output tweaks --- photoapp/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photoapp/cli.py b/photoapp/cli.py index 118c7d2..9b9b217 100644 --- a/photoapp/cli.py +++ b/photoapp/cli.py @@ -57,7 +57,7 @@ class PhotoApiClient(object): def maybetruncate(s, length): if s and len(s) > length: - s = s[0:length - 3] + "..." + s = s[0:length - 3].strip() + "..." return s @@ -250,7 +250,7 @@ def main(): elif args.action == "stats": print(tabulate(sorted([[k, v] for k, v in client.stats().items()], - key=lambda row: row[0], reverse=True), + key=lambda row: row[0]), headers=["item", "count"])) elif args.action == "user":