def get_most_recent_messages(exp_id):
 thread_models = feedback_models.FeedbackThreadModel.get_threads(exp_id, limit=feconf.OPEN_FEEDBACK_COUNT_DASHBOARD)
 message_models = []
 for thread_model in thread_models:
  message_models.append(feedback_models.FeedbackMessageModel.get_most_recent_message(exp_id, thread_model.thread_id))
 return [_get_message_from_model(message_model) for message_model in message_models]

def get_most_recent_messages ( exp_id ) : thread_models = feedback_models . FeedbackThreadModel . get_threads ( exp_id , limit = feconf . OPEN_FEEDBACK_COUNT_DASHBOARD ) message_models = [ ] for thread_model in thread_models : message_models . append ( feedback_models . FeedbackMessageModel . get_most_recent_message ( exp_id , thread_model . thread_id ) ) return [ _get_message_from_model ( message_model ) for message_model in message_models ]
fetch the most recently updated feedback threads for a given exploration .