mirror of
https://github.com/wassname/psaw.git
synced 2026-09-09 11:30:51 +08:00
fix for paging
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user