Пример #1
0
    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)
Пример #2
0
  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)
Пример #3
0
  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)