def run(self): logging.debug("Flair management thread starting") reddit_wrapper = get_reddit_wrapper(self._config) while(True): update_flair(reddit_wrapper, self._subreddit_name, self._mapping) time.sleep(self._update_interval) logging.debug("Flair management thread stopping")
def run(self): logging.debug("Flair management thread starting") reddit_wrapper = get_reddit_wrapper(self._config) while (True): update_flair(reddit_wrapper, self._subreddit_name, self._mapping) time.sleep(self._update_interval) logging.debug("Flair management thread stopping")
def run(self): logging.debug("Stream Status Thread starting") reddit_wrapper = get_reddit_wrapper(self._config) stream_obj = None while (True): new_stream_obj = stream.create_stream_object(self._stream_name) if (new_stream_obj != None): if (stream_obj != None): if (stream.should_update_sidebar(stream_obj, new_stream_obj)): stream.update_sidebar(reddit_wrapper, self._subreddit_name, new_stream_obj) else: stream.update_sidebar(reddit_wrapper, self._subreddit_name, new_stream_obj) stream_obj = new_stream_obj time.sleep(self._update_interval) logging.debug("Stream status thread stopping")