-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shuffle Question Order in Quiz Assessments/Homeworks #121
base: main
Are you sure you want to change the base?
Conversation
@@ -136,6 +175,7 @@ async def create_session(session: Session): | |||
current_session["time_remaining"] = last_session.get("time_remaining", None) | |||
current_session["has_quiz_ended"] = last_session.get("has_quiz_ended", False) | |||
current_session["metrics"] = last_session.get("metrics", None) | |||
current_session["question_order"] = last_session["question_order"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you sure this shouldn't have a default value here? i'm wondering if it will cause issues. with previously completed quizzes, etc. this necessitates that we add identity order to all existing sessions, right?
@@ -70,6 +106,9 @@ async def create_session(session: Session): | |||
if last_session is None: | |||
logger.info("No previous session exists for this user-quiz combo") | |||
current_session["is_first"] = True | |||
if not session.omr_mode: | |||
question_order = shuffle_question_order(quiz["question_sets"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this variable.. just call the function in next line
bucket_size = Settings().subset_size | ||
|
||
global_index = 0 # Track global index across all questions | ||
logger.info(question_sets) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why log all questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh missed it! will remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok to me.. needs tests
Description
This PR enhances the quiz assessment feature by introducing randomized question shuffling and ensuring accurate response storage under shuffled conditions.
Key Highlights