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
a89833ea
Commit
a89833ea
authored
Mar 27, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple of bugs
parent
4e3006d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
mentoring/dashboard.py
+8
-3
No files found.
mentoring/dashboard.py
View file @
a89833ea
...
...
@@ -74,7 +74,6 @@ class DashboardBlock(StudioEditableXBlockMixin, XBlock):
"values are to be shown on this dashboard. The list should be in JSON format. Example: {example_here}"
)
.
format
(
example_here
=
'["2754b8afc03a439693b9887b6f1d9e36", "215028f7df3d4c68b14fb5fea4da7053"]'
),
scope
=
Scope
.
settings
,
default
=
""
)
color_codes
=
Dict
(
display_name
=
_
(
"Color Coding"
),
...
...
@@ -105,8 +104,14 @@ class DashboardBlock(StudioEditableXBlockMixin, XBlock):
mentoring_id
=
self
.
scope_ids
.
usage_id
.
course_key
.
make_usage_key
(
'problem-builder'
,
url_name
)
try
:
yield
self
.
runtime
.
get_block
(
mentoring_id
)
except
XBlockNotFoundError
:
yield
None
# Catch all here b/c edX runtime throws other exceptions we can't import in other contexts like workbench:
except
(
XBlockNotFoundError
,
Exception
):
# Maybe it's using the deprecated block type "mentoring":
mentoring_id
=
self
.
scope_ids
.
usage_id
.
course_key
.
make_usage_key
(
'mentoring'
,
url_name
)
try
:
yield
self
.
runtime
.
get_block
(
mentoring_id
)
except
(
XBlockNotFoundError
,
Exception
):
yield
None
def
_get_submission_key
(
self
,
usage_key
):
"""
...
...
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