From 945abba84f82e9900c15c3daf77f3817ded9f0cb Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 27 Oct 2023 22:47:17 +0200 Subject: [PATCH] add more fields --- rendercv/data_model.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/rendercv/data_model.py b/rendercv/data_model.py index 7270c50..c366c5d 100644 --- a/rendercv/data_model.py +++ b/rendercv/data_model.py @@ -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",