def twt_remove_search_term_callback(path, args): common.log("Removing '" + args[0] + "' from the search terms set\n") common.showSearchTerms() if args[0] in common.search_terms: common.search_terms.remove(args[0]) common.connection = False common.newTweetsQueue.clear()
def twt_add_search_term_callback(path, args): common.log("Adding '" + args[0] + "' to the search terms set\n") common.showSearchTerms() if args[0] not in common.search_terms: common.search_terms.add(args[0]) common.connection = False common.newTweetsQueue.clear()