From 7aeea0357d7664b250288a8fd0834449b9d14e3c Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 5 Mar 2017 09:39:20 -0800 Subject: add required_engagements setting --- example_settings.py | 1 + unloved_tweets.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example_settings.py b/example_settings.py index 5657699..acd88a3 100644 --- a/example_settings.py +++ b/example_settings.py @@ -1,5 +1,6 @@ DEBUG = True MINUTES_TO_LIVE = 5 +REQUIRED_ENGAGEMENTS = 1 DELETED_TWEETS_FILE = '/home/unloved_tweets/dead_tweets.txt' consumer_key = '' consumer_secret = '' diff --git a/unloved_tweets.py b/unloved_tweets.py index 647bd38..6a19c00 100644 --- a/unloved_tweets.py +++ b/unloved_tweets.py @@ -46,7 +46,7 @@ for tweet in public_tweets: if tweet.id in tweet_ids_with_replies: print "has one or more replies!" - if minutes<60 and minutes>=MINUTES_TO_LIVE and engagements==0: + if minutes<60 and minutes>=MINUTES_TO_LIVE and engagements