From 4daeeb7beb98ade0c0226e48faf5eceed3ccd86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Sat, 3 Oct 2015 05:12:22 -0500 Subject: [PATCH] Disable some things before snapshot --- src/sessionmanager/session.py | 2 +- src/twitter/buffers/stream.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sessionmanager/session.py b/src/sessionmanager/session.py index 10fb6cec..3fabdef3 100644 --- a/src/sessionmanager/session.py +++ b/src/sessionmanager/session.py @@ -62,7 +62,7 @@ class Session(object): self.db[name] = [] 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: - i = self.check_quoted_status(i) +# i = self.check_quoted_status(i) if self.settings["general"]["reverse_timelines"] == False: self.db[name].append(i) else: self.db[name].insert(0, i) num = num+1 diff --git a/src/twitter/buffers/stream.py b/src/twitter/buffers/stream.py index c33b0492..d0f8d1d5 100644 --- a/src/twitter/buffers/stream.py +++ b/src/twitter/buffers/stream.py @@ -36,12 +36,13 @@ class streamer(TwythonStreamer): if utils.find_item(data["id"], self.session.db[place]) != None: log.error("duplicated tweet. Ignoring it...") return - 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[place].append(data) else: self.session.db[place].insert(0, data) utils.is_audio(data) + def block_user(self, data): id = data["target"]["id"] if id in self.friends: