Merge pull request #25 from robhawkins/master

fix for paging
This commit is contained in:
David Marx authored and GitHub committed 2018-08-05 23:39:36 -07:00
commit d14dc41897
1 file changed
+4 -1
+4 -1
View File
@@ -203,7 +203,10 @@ class PushshiftAPIMinimal(object):
yield batch
# For paging.
self.payload['before'] = thing.created_utc
if self.payload.get('sort') == 'desc':
self.payload['before'] = thing.created_utc
else:
self.payload['after'] = thing.created_utc
#class PushshiftAPI(PushshiftAPIMinimal):