fix for paging

This commit is contained in:
robhawkins
2018-07-25 17:50:15 +08:00
parent 9a8997c325
commit db258dad2f
+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):