From 84f13894f65d33f5cf091c77e7b828b806af4436 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 29 Jul 2017 21:23:35 +0100 Subject: [PATCH] Format post karma & comments nicely --- dave/modules/reddit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dave/modules/reddit.py b/dave/modules/reddit.py index 1d519e9..487915d 100644 --- a/dave/modules/reddit.py +++ a/dave/modules/reddit.py @@ -36,8 +36,8 @@ " by ", A.bold[resp["author"]], " (/r/{}) {} comments, {} points, posted {}".format( resp["subreddit"], - resp["num_comments"], - resp["score"], + intcomma(resp["num_comments"]), + intcomma(resp["score"]), naturaltime(datetime.utcnow().timestamp() - resp["created_utc"]) ), ] -- rgit 0.1.3