mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 20:53:13 -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):
|
def remove_stream(self, stream):
|
||||||
if stream == "timelinesStream":
|
if stream == "timelinesStream":
|
||||||
|
if hasattr(self, "timelinesStream"):
|
||||||
self.timelinesStream.disconnect()
|
self.timelinesStream.disconnect()
|
||||||
del self.timelinesStream
|
del self.timelinesStream
|
||||||
else:
|
else:
|
||||||
|
@ -46,7 +46,7 @@ class timelinesStreamer(TwythonStreamer):
|
|||||||
try:
|
try:
|
||||||
i.users.index(data["user"]["id"])
|
i.users.index(data["user"]["id"])
|
||||||
usr = data["in_reply_to_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)
|
data = self.session.check_quoted_status(data)
|
||||||
if self.session.settings["general"]["reverse_timelines"] == False: self.session.db["%s" % (i.name,)].append(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)
|
else: self.session.db["%s" % (i.name,)].insert(0, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user