🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-07-29 21:23:35.0 +01:00:00
committer Jordan Doyle <jordan@doyle.wf> 2017-07-29 21:23:35.0 +01:00:00
commit
84f13894f65d33f5cf091c77e7b828b806af4436 [patch]
tree
6dd95818c653127813c0a57682f7b5ff3ed62159
parent
a80fb80319611e290d7a9bad72fd23353478bb94
download
84f13894f65d33f5cf091c77e7b828b806af4436.tar.gz

Format post karma & comments nicely



Diff

 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"])
            ),
        ]