Skip to content
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

M2 4786 #1085

Closed
wants to merge 7 commits into from
Closed

M2 4786 #1085

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions src/apps/activities/domain/response_type_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def validate_correct_answer(cls, value, values):
return value


class _SelectionConfig(_ScreenConfig, PublicModel):
class SingleSelectionConfig(_ScreenConfig, PublicModel):
randomize_options: bool
timer: NonNegativeInt | None
add_scores: bool
Expand All @@ -71,12 +71,8 @@ class _SelectionConfig(_ScreenConfig, PublicModel):
additional_response_option: AdditionalResponseOption


class SingleSelectionConfig(_SelectionConfig, PublicModel):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't delete this config

auto_advance: bool = False


class MultiSelectionConfig(_SelectionConfig, PublicModel):
pass
class MultiSelectionConfig(SingleSelectionConfig, PublicModel):
is_none_above: bool


class MessageConfig(PublicModel):
Expand Down Expand Up @@ -425,7 +421,9 @@ def get_values(cls) -> list[str]:
index = 0

for response_type in ResponseType:
zipped_type_value = list(zip(ResponseValueConfigOptions, ResponseTypeConfigOptions))
zipped_type_value = list(
zip(ResponseValueConfigOptions, ResponseTypeConfigOptions)
)

ResponseTypeValueConfig[response_type] = {
"config": zipped_type_value[index][1],
Expand Down
Loading
Loading