From ee31bc89cffe3870b38af60203e8b60797437b2d Mon Sep 17 00:00:00 2001 From: David Trail Date: Mon, 14 Sep 2015 12:24:11 +0100 Subject: [PATCH] Need 'history' OAuth2 access now. --- shreddit.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shreddit.py b/shreddit.py index 392855b..1b5d976 100755 --- a/shreddit.py +++ b/shreddit.py @@ -111,12 +111,13 @@ if verbose and whitelist: ) def get_things(after=None): + limit = 100 if item == "comments": - return r.user.get_comments(limit=None, sort=sort) + return r.user.get_comments(limit=limit, sort=sort) elif item == "submitted": - return r.user.get_submitted(limit=None, sort=sort) + return r.user.get_submitted(limit=limit, sort=sort) elif item == "overview": - return r.user.get_overview(limit=None, sort=sort) + return r.user.get_overview(limit=limit, sort=sort) else: raise Exception("Your deletion section is wrong")