Browse Source

Removed the count; the pages are always in blocks of 20

master
Julio Biason 15 years ago
parent
commit
ad05de90ac
  1. 9
      mitterlib/network/twitter.py

9
mitterlib/network/twitter.py

@ -351,15 +351,10 @@ class Connection(NetworkBase):
option='secure_server_url', option='secure_server_url',
default='https://api.twitter.com/1', default='https://api.twitter.com/1',
is_cmd_option=False) is_cmd_option=False)
options.add_option(
group=self.NAMESPACE,
option='page_size',
default=20,
is_cmd_option=False)
options.add_option( options.add_option(
group=self.NAMESPACE, group=self.NAMESPACE,
option='message_threshold', option='message_threshold',
default=4, default=16,
is_cmd_option=False) is_cmd_option=False)
auth_options(self.NAMESPACE, options, self.AUTH) auth_options(self.NAMESPACE, options, self.AUTH)
return return
@ -369,7 +364,7 @@ class Connection(NetworkBase):
last_id = int(self._options[self.NAMESPACE][config_var]) last_id = int(self._options[self.NAMESPACE][config_var])
_log.debug('%s: %d', config_var, last_id) _log.debug('%s: %d', config_var, last_id)
params = {'count': self._options[self.NAMESPACE]['page_size']} params = {}
if last_id > 0: if last_id > 0:
params['since_id'] = last_id params['since_id'] = last_id

Loading…
Cancel
Save