예제 #1
0
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()
예제 #2
0
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()