Skip to content

Commit

Permalink
Fix linter errors 2
Browse files Browse the repository at this point in the history
  • Loading branch information
albertas-jn committed Apr 12, 2024
1 parent 28bcfad commit fd8a6c9
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions backend/experiment/questions/demographics.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,23 +147,29 @@
]


# Temporary until full Question model is implemented
from .utils import question_by_key

question_dgf_education_matching_pairs = question_by_key('dgf_education', drop_choices=['isced-2', 'isced-5'])
question_dgf_education_matching_pairs.key = 'dgf_education_matching_pairs'
def demographics_other():
from .utils import question_by_key

questions = []

question = question_by_key('dgf_education', drop_choices=['isced-2', 'isced-5'])
question.key = 'dgf_education_matching_pairs'
questions.append(question)

question_dgf_education_gold_msi = question_by_key('dgf_education', drop_choices=['isced-1'])
question_dgf_education_gold_msi.key = 'dgf_education_gold_msi'
question = question_by_key('dgf_education', drop_choices=['isced-1'])
question.key = 'dgf_education_gold_msi'
questions.append(question)

question_dgf_education_huang_2022 = question_by_key('dgf_education', drop_choices=['isced-5'])
question_dgf_education_huang_2022.key = 'dgf_education_huang_2022'
question = question_by_key('dgf_education', drop_choices=['isced-5'])
question.key = 'dgf_education_huang_2022'
questions.append(question)

DEMOGRAPHICS_OTHER = [
question_dgf_education_matching_pairs,
question_dgf_education_gold_msi,
question_dgf_education_huang_2022,
return questions


# Temporary until full Question model is implemented
DEMOGRAPHICS_OTHER = demographics_other() + [
TextQuestion(
key='fame_name',
question=_("Enter a name to enter the ICMPC hall of fame"),
Expand Down

0 comments on commit fd8a6c9

Please sign in to comment.