Merge pull request #25 from robhawkins/master

fix for paging
This commit is contained in:
David Marx
2018-08-05 23:39:36 -07:00
committed by GitHub
+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):