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",
|
||||
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(
|
||||
default=None,
|
||||
title="Work Experience",
|
||||
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(
|
||||
default=None,
|
||||
title="Academic Projects",
|
||||
|
@ -1152,11 +1162,26 @@ class CurriculumVitae(BaseModel):
|
|||
title="Test Scores",
|
||||
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(
|
||||
default=None,
|
||||
title="Skills",
|
||||
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(
|
||||
default=None,
|
||||
title="Custom Sections",
|
||||
|
@ -1228,13 +1253,18 @@ class CurriculumVitae(BaseModel):
|
|||
# Pre-defined sections (i.e. sections that are not custom)):
|
||||
pre_defined_sections = {
|
||||
"Education": self.education,
|
||||
"Experience": self.experience,
|
||||
"Work Experience": self.work_experience,
|
||||
"Projects": self.projects,
|
||||
"Academic Projects": self.academic_projects,
|
||||
"Personal Projects": self.personal_projects,
|
||||
"Certificates": self.certificates,
|
||||
"Extracurricular Activities": self.extracurricular_activities,
|
||||
"Test Scores": self.test_scores,
|
||||
"Skills": self.skills,
|
||||
"Awards": self.awards,
|
||||
"Interests": self.interests,
|
||||
"Programming Skills": self.programming_skills,
|
||||
"Publications": self.publications,
|
||||
}
|
||||
|
||||
|
@ -1242,10 +1272,15 @@ class CurriculumVitae(BaseModel):
|
|||
# If the user didn't specify the section order, then use the default order:
|
||||
self.section_order = [
|
||||
"Education",
|
||||
"Experience",
|
||||
"Work Experience",
|
||||
"Projects",
|
||||
"Academic Projects",
|
||||
"Personal Projects",
|
||||
"Skills",
|
||||
"Awards",
|
||||
"Interests",
|
||||
"Programming Skills",
|
||||
"Test Scores",
|
||||
"Certificates",
|
||||
"Extracurricular Activities",
|
||||
|
|
Loading…
Reference in New Issue