Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
bb2ea267
Commit
bb2ea267
authored
Jul 21, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store question ID in "Question" column if "question" attribute is not
set on block.
parent
51d02cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
problem_builder/tasks.py
+8
-1
No files found.
problem_builder/tasks.py
View file @
bb2ea267
...
@@ -97,7 +97,7 @@ def _extract_data(course_key_str, block, user_id, match_string):
...
@@ -97,7 +97,7 @@ def _extract_data(course_key_str, block, user_id, match_string):
block_type
=
_get_type
(
block
)
block_type
=
_get_type
(
block
)
# Extract info for "Question" column
# Extract info for "Question" column
block_question
=
block
.
question
block_question
=
_get_question
(
block
)
# Extract info for "Answer" and "Username" columns
# Extract info for "Answer" and "Username" columns
# - Get all of the most recent student submissions for this block:
# - Get all of the most recent student submissions for this block:
...
@@ -141,6 +141,13 @@ def _get_type(block):
...
@@ -141,6 +141,13 @@ def _get_type(block):
return
block
.
scope_ids
.
block_type
return
block
.
scope_ids
.
block_type
def
_get_question
(
block
):
"""
Return question for `block`; default to question ID if `question` is not set.
"""
return
block
.
question
or
block
.
name
def
_get_submissions
(
course_key_str
,
block
,
user_id
):
def
_get_submissions
(
course_key_str
,
block
,
user_id
):
"""
"""
Return submissions for `block`.
Return submissions for `block`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment