mirror of https://github.com/eyhc1/rendercv.git
add more fields
This commit is contained in:
parent
0f9ed9bfd0
commit
945abba84f
|
@ -1117,11 +1117,21 @@ class CurriculumVitae(BaseModel):
|
||||||
title="Education",
|
title="Education",
|
||||||
description="The education entries of the person.",
|
description="The education entries of the person.",
|
||||||
)
|
)
|
||||||
|
experience: Optional[list[ExperienceEntry]] = Field(
|
||||||
|
default=None,
|
||||||
|
title="Experience",
|
||||||
|
description="The experience entries of the person.",
|
||||||
|
)
|
||||||
work_experience: Optional[list[ExperienceEntry]] = Field(
|
work_experience: Optional[list[ExperienceEntry]] = Field(
|
||||||
default=None,
|
default=None,
|
||||||
title="Work Experience",
|
title="Work Experience",
|
||||||
description="The work experience entries of the person.",
|
description="The work experience entries of the person.",
|
||||||
)
|
)
|
||||||
|
projects: Optional[list[NormalEntry]] = Field(
|
||||||
|
default=None,
|
||||||
|
title="Projects",
|
||||||
|
description="The project entries of the person.",
|
||||||
|
)
|
||||||
academic_projects: Optional[list[NormalEntry]] = Field(
|
academic_projects: Optional[list[NormalEntry]] = Field(
|
||||||
default=None,
|
default=None,
|
||||||
title="Academic Projects",
|
title="Academic Projects",
|
||||||
|
@ -1152,11 +1162,26 @@ class CurriculumVitae(BaseModel):
|
||||||
title="Test Scores",
|
title="Test Scores",
|
||||||
description="The test score entries of the person.",
|
description="The test score entries of the person.",
|
||||||
)
|
)
|
||||||
|
programming_skills: Optional[list[OneLineEntry]] = Field(
|
||||||
|
default=None,
|
||||||
|
title="Programming Skills",
|
||||||
|
description="The programming skill entries of the person.",
|
||||||
|
)
|
||||||
skills: Optional[list[OneLineEntry]] = Field(
|
skills: Optional[list[OneLineEntry]] = Field(
|
||||||
default=None,
|
default=None,
|
||||||
title="Skills",
|
title="Skills",
|
||||||
description="The skill entries of the person.",
|
description="The skill entries of the person.",
|
||||||
)
|
)
|
||||||
|
awards: Optional[list[OneLineEntry]] = Field(
|
||||||
|
default=None,
|
||||||
|
title="Awards",
|
||||||
|
description="The award entries of the person.",
|
||||||
|
)
|
||||||
|
interests: Optional[list[OneLineEntry]] = Field(
|
||||||
|
default=None,
|
||||||
|
title="Interests",
|
||||||
|
description="The interest entries of the person.",
|
||||||
|
)
|
||||||
custom_sections: Optional[list[Section]] = Field(
|
custom_sections: Optional[list[Section]] = Field(
|
||||||
default=None,
|
default=None,
|
||||||
title="Custom Sections",
|
title="Custom Sections",
|
||||||
|
@ -1228,13 +1253,18 @@ class CurriculumVitae(BaseModel):
|
||||||
# Pre-defined sections (i.e. sections that are not custom)):
|
# Pre-defined sections (i.e. sections that are not custom)):
|
||||||
pre_defined_sections = {
|
pre_defined_sections = {
|
||||||
"Education": self.education,
|
"Education": self.education,
|
||||||
|
"Experience": self.experience,
|
||||||
"Work Experience": self.work_experience,
|
"Work Experience": self.work_experience,
|
||||||
|
"Projects": self.projects,
|
||||||
"Academic Projects": self.academic_projects,
|
"Academic Projects": self.academic_projects,
|
||||||
"Personal Projects": self.personal_projects,
|
"Personal Projects": self.personal_projects,
|
||||||
"Certificates": self.certificates,
|
"Certificates": self.certificates,
|
||||||
"Extracurricular Activities": self.extracurricular_activities,
|
"Extracurricular Activities": self.extracurricular_activities,
|
||||||
"Test Scores": self.test_scores,
|
"Test Scores": self.test_scores,
|
||||||
"Skills": self.skills,
|
"Skills": self.skills,
|
||||||
|
"Awards": self.awards,
|
||||||
|
"Interests": self.interests,
|
||||||
|
"Programming Skills": self.programming_skills,
|
||||||
"Publications": self.publications,
|
"Publications": self.publications,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1242,10 +1272,15 @@ class CurriculumVitae(BaseModel):
|
||||||
# If the user didn't specify the section order, then use the default order:
|
# If the user didn't specify the section order, then use the default order:
|
||||||
self.section_order = [
|
self.section_order = [
|
||||||
"Education",
|
"Education",
|
||||||
|
"Experience",
|
||||||
"Work Experience",
|
"Work Experience",
|
||||||
|
"Projects",
|
||||||
"Academic Projects",
|
"Academic Projects",
|
||||||
"Personal Projects",
|
"Personal Projects",
|
||||||
"Skills",
|
"Skills",
|
||||||
|
"Awards",
|
||||||
|
"Interests",
|
||||||
|
"Programming Skills",
|
||||||
"Test Scores",
|
"Test Scores",
|
||||||
"Certificates",
|
"Certificates",
|
||||||
"Extracurricular Activities",
|
"Extracurricular Activities",
|
||||||
|
|
Loading…
Reference in New Issue