def getByNickname(self, nickname): user = userModel.all() user.filter('nickname =', nickname) return user.get()
def getByUserData(self, user): user = userModel.all() user.filter('userData =', user) return user.get()