Пример #1
0
def set_twitter_max_favorites(max_favorites, current_max_favorites, twitter_state):
    """
    See set_max_score function in utils/helpers.py
    """
    twitter_state['max_favorites'] = helpers.set_max_score(
        max_favorites, current_max_favorites, 'favorites')
    twitter_state.sync
Пример #2
0
def set_twitter_max_retweets(max_retweets, current_max_retweets, twitter_state):
    """
    See set_max_score function in helpers.py
    """
    twitter_state['max_retweets'] = helpers.set_max_score(
        max_retweets, current_max_retweets, 'retweets')
    twitter_state.sync
Пример #3
0
def set_reddit_max_score(max_score, current_max_score, reddit_state):
    """
    See set_max_score function in utils/helpers.py
    """
    reddit_state['max_score'] = helpers.set_max_score(
        max_score, current_max_score, 'upvotes')
    reddit_state.sync