mirror of
https://git.wownero.com/wownero/tippero.git
synced 2024-08-15 00:33:14 +00:00
twitter: Fix last id initialization
The previous code was right, I got confused with reddit. It just needs to guard against it not being in the DB - init to 0.
This commit is contained in:
parent
1aad5fce5d
commit
a4357a3ee7
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ class TwitterNetwork(Network):
|
|||
return False
|
||||
|
||||
self.items_cache=dict()
|
||||
self.last_seen_tweet_id=redis_get('twitter:last_seen_tweet_id')
|
||||
self.last_seen_dm_id=redis_get('twitter:last_seen_dm_id')
|
||||
self.last_seen_tweet_id=long(redis_get('twitter:last_seen_tweet_id') or 0)
|
||||
self.last_seen_dm_id=long(redis_get('twitter:last_seen_dm_id') or 0)
|
||||
log_log('loaded last seen id: tweet %s, dm %s' % (str(self.last_seen_tweet_id),str(self.last_seen_dm_id)))
|
||||
|
||||
auth=tweepy.OAuthHandler(ckey,csecret)
|
||||
|
|
Loading…
Reference in a new issue