mirror of
https://github.com/wassname/psaw.git
synced 2026-10-29 13:31:04 +08:00
1 file changed
+4
-1
@@ -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