mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Some list improvements
This commit is contained in:
parent
45f663a462
commit
b4eb11a6de
@ -369,6 +369,7 @@ class Session(object):
|
||||
|
||||
def remove_stream(self, stream):
|
||||
if stream == "timelinesStream":
|
||||
if hasattr(self, "timelinesStream"):
|
||||
self.timelinesStream.disconnect()
|
||||
del self.timelinesStream
|
||||
else:
|
||||
|
@ -46,7 +46,7 @@ class timelinesStreamer(TwythonStreamer):
|
||||
try:
|
||||
i.users.index(data["user"]["id"])
|
||||
usr = data["in_reply_to_user_id"]
|
||||
if (usr != None or usr in self.friends) or data.has_key("retweeted_status"):
|
||||
if (usr != None and usr in self.friends) or data.has_key("retweeted_status"):
|
||||
data = self.session.check_quoted_status(data)
|
||||
if self.session.settings["general"]["reverse_timelines"] == False: self.session.db["%s" % (i.name,)].append(data)
|
||||
else: self.session.db["%s" % (i.name,)].insert(0, data)
|
||||
|
Loading…
Reference in New Issue
Block a user