def get_results_data(self, user_id): """ Get the results needed for the survey page """ users, quiz_attempts = yield( User.get_by_user_id_async(user_id), QuizAttempt.get_all_attempts_for_user_id_async(user_id) ) raise ndb.Return((users, quiz_attempts))