def get_users_email_preferences_for_exploration(user_ids, exploration_id):
 exploration_user_models = user_models.ExplorationUserDataModel.get_multi(user_ids, exploration_id)
 result = []
 for exploration_user_model in exploration_user_models:
  if (exploration_user_model is None):
   result.append(user_domain.UserExplorationPrefs.create_default_prefs())
  else:
   result.append(user_domain.UserExplorationPrefs(exploration_user_model.mute_feedback_notifications, exploration_user_model.mute_suggestion_notifications))
 return result

def get_users_email_preferences_for_exploration ( user_ids , exploration_id ) : exploration_user_models = user_models . ExplorationUserDataModel . get_multi ( user_ids , exploration_id ) result = [ ] for exploration_user_model in exploration_user_models : if ( exploration_user_model is None ) : result . append ( user_domain . UserExplorationPrefs . create_default_prefs ( ) ) else : result . append ( user_domain . UserExplorationPrefs ( exploration_user_model . mute_feedback_notifications , exploration_user_model . mute_suggestion_notifications ) ) return result
gives mute preferences for exploration with given exploration_id of user with given user_id .