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

Replace inf value #232

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Replace inf value #232

merged 1 commit into from
Jan 11, 2024

Conversation

eynimeni
Copy link
Contributor

@eynimeni eynimeni commented Jan 10, 2024

had to change the default inf value because parsing to json isn't supported for INF

does this cause any problems @davidszkiba ?

@eynimeni eynimeni self-assigned this Jan 10, 2024
Copy link
Contributor

@davidszkiba davidszkiba left a comment

Choose a reason for hiding this comment

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

There are still other places that reference the max_attempts_per_scale value:

There, we check how many more questions we could theoretically return from a catscale if we can play at most N questions per scale and already played some or no questions.

I think here we should also include the -1 value in the check:
https://github.com/Wunderbyte-GmbH/moodle-local_catquiz/blob/replace-inf-value/classes/teststrategy/preselect_task/mayberemovescale.php#L65

Copy link
Contributor

@davidszkiba davidszkiba left a comment

Choose a reason for hiding this comment

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

Schaut gut aus 👍

@eynimeni eynimeni merged commit 60fde0b into develop Jan 11, 2024
32 checks passed
@eynimeni eynimeni deleted the replace-inf-value branch January 11, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants