Correct number of seconds in a day.
authorChris Lamb <chris@chris-lamb.co.uk>
Sat, 15 Jul 2017 17:44:30 +0000 (18:44 +0100)
committerChris Lamb <chris@chris-lamb.co.uk>
Sat, 15 Jul 2017 17:44:30 +0000 (18:44 +0100)
(Looks like a typo)

diaspy/streams.py

index 4e29b303e8e695e4bf244622cda5e7de33722395..8db05be3e4c0e0c3ad9e8e931a0129da1362f95c 100644 (file)
@@ -130,7 +130,7 @@ class Generic():
         """
         self._stream = self._obtain()
 
-    def more(self, max_time=0, backtime=84600):
+    def more(self, max_time=0, backtime=86400):
         """Tries to download more (older posts) posts from Stream.
 
         :param backtime: how many seconds substract each time (defaults to one day)
@@ -143,7 +143,7 @@ class Generic():
         new_stream = self._obtain(max_time=max_time)
         self._expand(new_stream)
 
-    def full(self, backtime=84600, retry=42, callback=None):
+    def full(self, backtime=86400, retry=42, callback=None):
         """Fetches full stream - containing all posts.
         WARNING: this is a **VERY** long running function.
         Use callback parameter to access information about the stream during its