cli output tweaks

This commit is contained in:
dave 2019-07-04 23:53:45 -07:00
parent 043ffbc543
commit a2e854568f
1 changed files with 2 additions and 2 deletions

View File

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