add level texts, closes #45
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
weeman 2021-08-14 12:14:01 +02:00
parent 9a1f3f842a
commit ec855a542d
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1

View File

@ -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)