Work with user IDS instead usernames in all timelines

This commit is contained in:
2017-01-02 10:47:44 -06:00
parent 020148ac0a
commit cd7fb6d36f
4 changed files with 49 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ class timelinesStreamer(TwythonStreamer):
def check_tls(self, data):
for i in self.session.settings["other_buffers"]["timelines"]:
if data["user"]["screen_name"] == i:
if data["user"]["id_str"] == i:
if utils.find_item(data["id"], self.session.db["%s-timeline" % (i,)]) != None:
log.error("duplicated tweet. Ignoring it...")
return