def get_closed_threads(exploration_id, has_suggestion):
 threads = get_threads(exploration_id)
 closed_threads = []
 for thread in threads:
  if ((thread.has_suggestion == has_suggestion) and (thread.status != feedback_models.STATUS_CHOICES_OPEN)):
   closed_threads.append(thread)
 return closed_threads

def get_closed_threads ( exploration_id , has_suggestion ) : threads = get_threads ( exploration_id ) closed_threads = [ ] for thread in threads : if ( ( thread . has_suggestion == has_suggestion ) and ( thread . status != feedback_models . STATUS_CHOICES_OPEN ) ) : closed_threads . append ( thread ) return closed_threads
fetches all closed threads of the given exploration id .