def __init__(self, data): self.data = data self.score = None if self.data.ndb_profile and self.data.ndb_profile.is_student: self.score = ranking_logic.get(self.data.ndb_profile)
def __init__(self, data): self.data = data self.score = None if self.data.profile and self.data.profile.student_info: self.score = ranking_logic.get(self.data.profile)