From ec855a542dd7ae0ad186f0c248707f8ec8eacf83 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sat, 14 Aug 2021 12:14:01 +0200 Subject: [PATCH] add level texts, closes #45 --- ki/models.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/ki/models.py b/ki/models.py index c8409ba..64c5b44 100644 --- a/ki/models.py +++ b/ki/models.py @@ -146,6 +146,19 @@ class Skill(db.Model): class ProfileSkill(db.Model): + level1_text = "bis 6 Monate" + level2_text = "bis 1 Jahr" + level3_text = "bis 3 Jahre" + level4_text = "bis 5 Jahre" + level5_text = "mehr als 5 Jahre" + level_texts = { + 1: level1_text, + 2: level2_text, + 3: level3_text, + 4: level4_text, + 5: level5_text, + } + __tablename__ = "profile_skill" profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True) @@ -185,6 +198,19 @@ class Language(db.Model): class ProfileLanguage(db.Model): + level1_text = "keine Angabe" + level2_text = "Grundkenntnisse" + level3_text = "Gut" + level4_text = "Fließend" + level5_text = "Muttersprache" + level_texts = { + 1: level1_text, + 2: level2_text, + 3: level3_text, + 4: level4_text, + 5: level5_text, + } + __tablename__ = "profile_language" profile_id = Column(Integer, ForeignKey("profile.id"), primary_key=True)