mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Get more items works as espected using the inverted buffers.
This commit is contained in:
parent
d618f93d9d
commit
9b61fecb2c
@ -19,10 +19,8 @@ class streamer(TwythonStreamer):
|
|||||||
log.debug("%s: %s" % (status_code, data))
|
log.debug("%s: %s" % (status_code, data))
|
||||||
|
|
||||||
def check_tls(self, data):
|
def check_tls(self, data):
|
||||||
print "checking timelines..."
|
|
||||||
for i in config.main["other_buffers"]["timelines"]:
|
for i in config.main["other_buffers"]["timelines"]:
|
||||||
if data["user"]["screen_name"] == i:
|
if data["user"]["screen_name"] == i:
|
||||||
print "I found it"
|
|
||||||
tweet_event = event.event(event.EVT_OBJECT, 1)
|
tweet_event = event.event(event.EVT_OBJECT, 1)
|
||||||
tweet_event.SetItem(data)
|
tweet_event.SetItem(data)
|
||||||
announce = _(u"One tweet from %s") % (data["user"]["name"])
|
announce = _(u"One tweet from %s") % (data["user"]["name"])
|
||||||
|
@ -19,7 +19,6 @@ def get_more_items(update_function, twitter_object, users=False, name=None, *arg
|
|||||||
for i in data["users"]: results.append(i)
|
for i in data["users"]: results.append(i)
|
||||||
else:
|
else:
|
||||||
results.extend(data[1:])
|
results.extend(data[1:])
|
||||||
if config.main["general"]["reverse_timelines"] == True: results.reverse()
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
def call_paged(update_function, twitter_object, *args, **kwargs):
|
def call_paged(update_function, twitter_object, *args, **kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user