Skip to content

Commit

Permalink
Merge pull request #97 from avantifellows/instruction_page
Browse files Browse the repository at this point in the history
Added a instruction page to Quiz Engine
  • Loading branch information
suryabulusu authored Sep 26, 2023
2 parents d7dd0bb + 103b166 commit 47832c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
QuizLanguage,
QuizType,
EventType,
TestFormat,
)
from datetime import datetime

Expand Down Expand Up @@ -85,6 +86,7 @@ class QuestionMetadata(BaseModel):

class QuizMetadata(BaseModel):
quiz_type: QuizType
test_format: Optional[TestFormat]
grade: Optional[str]
subject: Optional[str]
chapter: Optional[str]
Expand Down Expand Up @@ -269,6 +271,7 @@ class Config:
"subject": "Maths",
"grade": "8",
"source": "cms",
"test_format": "part_test",
},
}
}
Expand Down Expand Up @@ -337,7 +340,12 @@ class Config:
],
"max_marks": 10,
"num_graded_questions": 3,
"metadata": {"quiz_type": "JEE", "subject": "Maths", "grade": "8"},
"metadata": {
"quiz_type": "JEE",
"subject": "Maths",
"grade": "8",
"test_format": "full_syllabus_test",
},
}
}

Expand Down
10 changes: 10 additions & 0 deletions app/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ class QuizType(Enum):
omr = "omr-assessment"


class TestFormat(Enum):
full_syllabus_test = "full_syllabus_test"
major_test = "major_test"
part_test = "part_test"
chapter_test = "chapter_test"
hiring_test = "hiring_test"
evaluation_test = "evaluation_test"
homework = "homework"


class EventType(str, Enum):
start_quiz = "start-quiz"
resume_quiz = "resume-quiz"
Expand Down

0 comments on commit 47832c2

Please sign in to comment.