Disable some things before snapshot

This commit is contained in:
Manuel Cortez 2015-10-03 05:12:22 -05:00
parent 408ff50404
commit 4daeeb7beb
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class Session(object):
self.db[name] = [] self.db[name] = []
for i in data: for i in data:
if utils.find_item(i["id"], self.db[name]) == None and utils.is_allowed(i, self.settings["twitter"]["ignored_clients"]) == True: if utils.find_item(i["id"], self.db[name]) == None and utils.is_allowed(i, self.settings["twitter"]["ignored_clients"]) == True:
i = self.check_quoted_status(i) # i = self.check_quoted_status(i)
if self.settings["general"]["reverse_timelines"] == False: self.db[name].append(i) if self.settings["general"]["reverse_timelines"] == False: self.db[name].append(i)
else: self.db[name].insert(0, i) else: self.db[name].insert(0, i)
num = num+1 num = num+1

View File

@ -36,12 +36,13 @@ class streamer(TwythonStreamer):
if utils.find_item(data["id"], self.session.db[place]) != None: if utils.find_item(data["id"], self.session.db[place]) != None:
log.error("duplicated tweet. Ignoring it...") log.error("duplicated tweet. Ignoring it...")
return return
data = self.session.check_quoted_status(data) # data = self.session.check_quoted_status(data)
if self.session.settings["general"]["reverse_timelines"] == False: if self.session.settings["general"]["reverse_timelines"] == False:
self.session.db[place].append(data) self.session.db[place].append(data)
else: else:
self.session.db[place].insert(0, data) self.session.db[place].insert(0, data)
utils.is_audio(data) utils.is_audio(data)
def block_user(self, data): def block_user(self, data):
id = data["target"]["id"] id = data["target"]["id"]
if id in self.friends: if id in self.friends: