Files
sm-quizzes-plugin/config/config.yaml
Jakub Zych 487d573208 feat: enforce attempt limits, time limits and one-way tests
- Service.Start resumes an open test attempt, closes expired ones at
  their deadline and refuses a start past max_attempts under an
  advisory lock; StartAttempt stays as a wrapper
- answers to a test are accepted until the deadline plus
  golem15.quizzes.test.grace_seconds; one_way answers are final
- a test covers the whole quiz and keeps a stable per-attempt order
- 409 bodies carry a code; list and attempt rows carry attempts_left,
  question_types and seconds_left; import accepts the test keys
2026-11-09 14:07:37 +01:00

15 lines
620 B
YAML

# Defaults for golem15.quizzes, merged under the plugin ID: the application
# reads these as golem15.quizzes.scoring.* and can override them in its own
# config.
scoring:
# Give partial credit on multiple-answer questions:
# (correct chosen - wrong chosen) / correct answers, floored at 0.
multiple_partial: false
# Fraction of a question's points subtracted for a wrong answer (0 to 1).
# An attempt's total never goes below 0.
penalty_wrong: 0
test:
# Seconds after a test's time limit during which an answer still in flight
# is accepted (0 to 120). Learning quizzes have no grace.
grace_seconds: 5