def get_cv_items_count(self): return sum([ Education.query(Education.provider == self.key).count(), Experience.query(Experience.provider == self.key).count(), ContinuingEducation.query(ContinuingEducation.provider == self.key).count(), ProfessionalOrganization.query(ProfessionalOrganization.provider == self.key).count(), ProfessionalCertification.query(ProfessionalCertification.provider == self.key).count(), ])
def get_cv_items_count(self): return sum([ Education.query(Education.provider == self.key).count(), Experience.query(Experience.provider == self.key).count(), ContinuingEducation.query( ContinuingEducation.provider == self.key).count(), ProfessionalOrganization.query( ProfessionalOrganization.provider == self.key).count(), ProfessionalCertification.query( ProfessionalCertification.provider == self.key).count(), ])
def get_organization(self): return ProfessionalOrganization.query(ProfessionalOrganization.provider == self.key).order(-ProfessionalOrganization.end_year, -ProfessionalOrganization.start_year)
def get_organization(self): return ProfessionalOrganization.query( ProfessionalOrganization.provider == self.key).order( -ProfessionalOrganization.end_year, -ProfessionalOrganization.start_year)