def get(self): mall = Mall() student_list = filter(lambda user: user.type == 'student', mall.get_all_users()[0]) for user in student_list: user.auth_ids.append(user.u_email) ndb.put_multi(student_list) self.response.out.write('{} update sucessfully'.format(len(student_list)))