Skip to content

Commit

Permalink
feat: display multiple-choice answers separately
Browse files Browse the repository at this point in the history
  • Loading branch information
SoryRawyer committed Oct 19, 2023
1 parent 319decc commit 4ea65d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tutoraspects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
# For now we are pulling this from github, which should allow maximum
# flexibility for forking, running branches, specific versions, etc.
("DBT_REPOSITORY", "https://github.com/openedx/aspects-dbt"),
("DBT_BRANCH", "v2.6"),
("DBT_BRANCH", "v2.7"),
# Path to the dbt project inside the repository
("DBT_REPOSITORY_PATH", "aspects-dbt"),
# This is a pip compliant list of Python packages to install to run dbt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WITH problem_responses AS (
problem_id,
actor_id,
success,
first_value(success) OVER (PARTITION BY course_key, problem_id, actor_id ORDER BY success DESC) AS was_successful
first_value(success) OVER (PARTITION BY course_key, problem_id, actor_id ORDER BY success ASC) AS was_successful
FROM problem_responses
), successful_responses AS (
SELECT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ select
actor_id,
attempts,
success,
responses
arrayJoin(
if(
startsWith(responses, '['),
cast(responses as Array(String)),
[responses]
)) as responses
from
problem_responses
where
Expand Down

0 comments on commit 4ea65d6

Please sign in to comment.