From 8971c3e42ecef4c9849941d9c71164a5e785ffe2 Mon Sep 17 00:00:00 2001 From: flifloo Date: Wed, 1 May 2019 17:04:46 +0200 Subject: [PATCH] Forgot to reactivate a security >w> --- stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.py b/stream.py index 8abca45..0a18d1d 100644 --- a/stream.py +++ b/stream.py @@ -16,7 +16,7 @@ class listener(tweepy.streaming.StreamListener): print(data) all_data = json.loads(data) for t in user.tweets.all(): - if "in_reply_to_status_id" in all_data and all_data["in_reply_to_status_id"] and t.statu_id == int(all_data["in_reply_to_status_id"]) and t.slots != t.slots_max and not t.commissions.filter_by(user = all_data["user"]["screen_name"]).first(): #and api.me().id != int(all_data["user"]["id"]) + if "in_reply_to_status_id" in all_data and all_data["in_reply_to_status_id"] and t.statu_id == int(all_data["in_reply_to_status_id"]) and t.slots != t.slots_max and not t.commissions.filter_by(user = all_data["user"]["screen_name"]).first() and api.me().id != int(all_data["user"]["id"]): for w in eval(t.keywords.lower()): if all_data["text"].lower().find(w) != -1: t.slots += 1