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":