From ad05de90ac51d8b023865beed3fe400608769c27 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 4 Jan 2010 09:42:20 -0200 Subject: [PATCH] Removed the count; the pages are always in blocks of 20 --- mitterlib/network/twitter.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/mitterlib/network/twitter.py b/mitterlib/network/twitter.py index bc6955b..ed14989 100644 --- a/mitterlib/network/twitter.py +++ b/mitterlib/network/twitter.py @@ -351,15 +351,10 @@ class Connection(NetworkBase): option='secure_server_url', default='https://api.twitter.com/1', is_cmd_option=False) - options.add_option( - group=self.NAMESPACE, - option='page_size', - default=20, - is_cmd_option=False) options.add_option( group=self.NAMESPACE, option='message_threshold', - default=4, + default=16, is_cmd_option=False) auth_options(self.NAMESPACE, options, self.AUTH) return @@ -369,7 +364,7 @@ class Connection(NetworkBase): last_id = int(self._options[self.NAMESPACE][config_var]) _log.debug('%s: %d', config_var, last_id) - params = {'count': self._options[self.NAMESPACE]['page_size']} + params = {} if last_id > 0: params['since_id'] = last_id