Refresh time is in minutes, minimum one. This is to account for the shoddy rate limiting that twitter does... seriously, twitter, just get better hardware
This commit is contained in:
parent
acf68dddbe
commit
eccfe997d9
|
@ -1,6 +1,7 @@
|
|||
[global]
|
||||
debug=0
|
||||
entries=20
|
||||
refreshtime=30
|
||||
refreshtime=5
|
||||
dbfile=~/.mytwitter.db
|
||||
|
||||
[account]
|
||||
|
|
|
@ -31,7 +31,7 @@ class MyTwitter():
|
|||
config.set('global', 'entries', '20')
|
||||
new_data = True
|
||||
if not config.has_option('global', 'refreshtime'):
|
||||
config.set('global', 'refreshtime', '30')
|
||||
config.set('global', 'refreshtime', '5')
|
||||
new_data = True
|
||||
if not config.has_option('global', 'dbfile'):
|
||||
config.set('global', 'dbfile', '~/.mytwitter.db')
|
||||
|
@ -82,8 +82,8 @@ class MyTwitter():
|
|||
if not self.db.has_key('open_tabs'):
|
||||
self.db['open_tabs'] = [(self.username + '/Home', None, False), ('@' + self.username, None, False), (self.username + '/Direct Messages', None, False)]
|
||||
|
||||
if self.refresh_time < 10:
|
||||
self.refresh_time = 10
|
||||
# refresh_time is in minutes... convert to seconds here
|
||||
self.refresh_time *= 60
|
||||
|
||||
self.reply_id = None
|
||||
|
||||
|
|
Reference in New Issue
Block a user