Key points on questions link into article sections (AMBOSS-style) with samples; difficulty tagging with builder/bank filters; adaptive session algorithm prefers unanswered questions then recycles older incorrect ones, weakest categories first with damping; question create/edit is now admin/educator only; expired exams no longer auto-submit on resume; exam suspend messaging updated. Migrations k4f5a6b7c819, l5a6b7c8d920, m6a7b8c9d031. 63 backend and 97 frontend tests pass.
19 lines
425 B
Python
19 lines
425 B
Python
"""Question key points that smart-link into reading articles.
|
|
|
|
Revision ID: l5a6b7c8d920
|
|
Revises: k4f5a6b7c819
|
|
"""
|
|
from alembic import op
|
|
|
|
revision = "l5a6b7c8d920"
|
|
down_revision = "k4f5a6b7c819"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.execute("ALTER TABLE questions ADD COLUMN IF NOT EXISTS key_points JSON")
|
|
|
|
|
|
def downgrade():
|
|
op.execute("ALTER TABLE questions DROP COLUMN IF EXISTS key_points")
|