def __init__(self, type): super().__init__(type) # Items specific to the mention stream self.disallowed_mods = get_data("disallowed_mods") self.mentions_success = get_data("mentions_success") self.mentions_failed = get_data("mentions_failed") self.problematic_domains = get_data("problematic_domains")
def __init__(self, type): # Basic items self.type = type self.allowed_subreddits = get_data("allowed_subreddits") self.disallowed_subreddits = get_data("disallowed_subreddits") self.disallowed_users = get_data("disallowed_users") self.np_subreddits = get_data("np_subreddits") self.praw_session = login.get_praw_session()
def get_logging_path(filename): try: logging_path = get_data(filename, is_log=True, return_path_only=True) return logging_path except (ValueError, Exception): logging.error(traceback.format_exc()) logging.warning("Couldn't get logging path") return None
def __init__(self, type): # Items specific to the tweet stream self.type = type self.tweets_success = get_data("tweets_success") self.tweets_failed = get_data("tweets_failed") self.disallowed_twitterers = get_data("disallowed_twitterers")
def __init__(self, type): super().__init__(type) # Items specific to the submission stream self.submissions_success = get_data("submissions_success") self.submissions_failed = get_data("submissions_failed")
def __init__(self, type): super().__init__(type) # Items specific to the comment stream self.comments_success = get_data("comments_success") self.comments_failed = get_data("comments_failed")
def __init__(self, type): # Items specific to the tweet stream self.type = type self.tweets_ok = get_data("tweets_ok") self.tweets_err = get_data("tweets_err") self.disallowed_twitterers = get_data("disallowed_twitterers")
def __init__(self, type): super().__init__(type) # Items specific to the submission stream self.submissions_ok = get_data("submissions_ok") self.submissions_err = get_data("submissions_err")
def __init__(self, type): super().__init__(type) # Items specific to the comment stream self.comments_ok = get_data("comments_ok") self.comments_err = get_data("comments_err")