def get_all_threads(exploration_id, has_suggestion):
 threads = get_threads(exploration_id)
 all_threads = []
 for thread in threads:
  if (thread.has_suggestion == has_suggestion):
   all_threads.append(thread)
 return all_threads

def get_all_threads ( exploration_id , has_suggestion ) : threads = get_threads ( exploration_id ) all_threads = [ ] for thread in threads : if ( thread . has_suggestion == has_suggestion ) : all_threads . append ( thread ) return all_threads
fetches all threads that correspond to the given exploration id .