Changeset 679 for confluence

Show
Ignore:
Timestamp:
11/04/09 14:50:17 (9 months ago)
Author:
confluence
Message:

not checking for minimum tweets at low numbers of followers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • confluence/emailfilters/twitterbouncer.py

    r678 r679  
    2424# number of followed users below which ratio is not enforced 
    2525FOLLOW_RATIO_GRACE = 30 
     26# number of followed users below which tweet minimum is not enforced 
     27MIN_TWEET_GRACE = 50 
    2628# maximum number of followed people permitted, in decreasing levels of rating severity 
    2729MAX_FOLLOWING_WTF = 900 
     
    7880    bad_score += 5 
    7981 
    80 if tweets < MIN_TWEETS_WTF: 
    81     bad_score += 15 
    82 elif tweets < MIN_TWEETS_HARD: 
    83     bad_score += 10 
     82if following > MIN_TWEET_GRACE: 
     83    if tweets < MIN_TWEETS_WTF: 
     84        bad_score += 15 
     85    elif tweets < MIN_TWEETS_HARD: 
     86        bad_score += 10 
    8487 
    8588print bad_score