def get_email_preferences_for_exploration(user_id, exploration_id):
 exploration_user_model = user_models.ExplorationUserDataModel.get(user_id, exploration_id)
 if (exploration_user_model is None):
  return user_domain.UserExplorationPrefs.create_default_prefs()
 else:
  return user_domain.UserExplorationPrefs(exploration_user_model.mute_feedback_notifications, exploration_user_model.mute_suggestion_notifications)

def get_email_preferences_for_exploration ( user_id , exploration_id ) : exploration_user_model = user_models . ExplorationUserDataModel . get ( user_id , exploration_id ) if ( exploration_user_model is None ) : return user_domain . UserExplorationPrefs . create_default_prefs ( ) else : return user_domain . UserExplorationPrefs ( exploration_user_model . mute_feedback_notifications , exploration_user_model . mute_suggestion_notifications )
gives mute preferences for exploration with given exploration_id of user with given user_id .