mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
FFix for creating favourites timelines
This commit is contained in:
parent
f76b86b24d
commit
503c65692d
@ -779,7 +779,7 @@ class Controller(object):
|
|||||||
if usr["favourites_count"] == 0:
|
if usr["favourites_count"] == 0:
|
||||||
commonMessageDialogs.no_favs()
|
commonMessageDialogs.no_favs()
|
||||||
return
|
return
|
||||||
if dlg.get_user() in buffer.session.settings["other_buffers"]["favourites_timelines"]:
|
if dlg.get_user() in buff.session.settings["other_buffers"]["favourites_timelines"]:
|
||||||
commonMessageDialogs.timeline_exist()
|
commonMessageDialogs.timeline_exist()
|
||||||
return
|
return
|
||||||
tl = buffersController.baseBufferController(self.view.nb, "get_favorites", "%s-favorite" % (dlg.get_user(),), buff.session, buff.session.db["user_name"], bufferType=None, screen_name=dlg.get_user())
|
tl = buffersController.baseBufferController(self.view.nb, "get_favorites", "%s-favorite" % (dlg.get_user(),), buff.session, buff.session.db["user_name"], bufferType=None, screen_name=dlg.get_user())
|
||||||
|
@ -322,12 +322,12 @@ class Session(object):
|
|||||||
for z in i.users:
|
for z in i.users:
|
||||||
ids += str(z) + ", "
|
ids += str(z) + ", "
|
||||||
if ids != "":
|
if ids != "":
|
||||||
print ids
|
# print ids
|
||||||
stream_threaded(self.timelinesStream.statuses.filter, self.session_id, follow=ids)
|
stream_threaded(self.timelinesStream.statuses.filter, self.session_id, follow=ids)
|
||||||
|
|
||||||
def add_friends(self):
|
def add_friends(self):
|
||||||
try:
|
try:
|
||||||
print "setting friends"
|
# print "setting friends"
|
||||||
self.timelinesStream.set_friends(self.main_stream.friends)
|
self.timelinesStream.set_friends(self.main_stream.friends)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user