Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
5682e02f
Commit
5682e02f
authored
Mar 06, 2013
by
Julian Arni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indendation that was causing only first submission to be saved
parent
e093431d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
common/lib/xmodule/xmodule/foldit_module.py
+12
-2
lms/djangoapps/foldit/views.py
+1
-1
No files found.
common/lib/xmodule/xmodule/foldit_module.py
View file @
5682e02f
...
...
@@ -96,8 +96,18 @@ class FolditModule(XModule):
self
.
required_level
,
self
.
required_sublevel
)
showbasic
=
(
self
.
metadata
.
get
(
"show_basic_score"
)
.
lower
()
==
"true"
)
showleader
=
(
self
.
metadata
.
get
(
"show_leaderboard"
)
.
lower
()
==
"true"
)
# Wrap these gets around try-except since calling lower() on NoneType
# (e.g. there is no attribute "show_basic_score" to the tag) will raise
# an exception
try
:
showbasic
=
(
self
.
metadata
.
get
(
"show_basic_score"
)
.
lower
()
==
"true"
)
except
:
showbasic
=
False
try
:
showleader
=
(
self
.
metadata
.
get
(
"show_leaderboard"
)
.
lower
()
==
"true"
)
except
:
showleader
=
False
context
=
{
'due'
:
self
.
due_str
,
'success'
:
self
.
is_complete
(),
...
...
lms/djangoapps/foldit/views.py
View file @
5682e02f
...
...
@@ -130,7 +130,7 @@ def save_scores(user, puzzle_scores):
current_score
=
current_score
,
best_score
=
best_score
,
score_version
=
score_version
)
obj
.
save
()
obj
.
save
()
score_responses
.
append
({
'PuzzleID'
:
puzzle_id
,
'Status'
:
'Success'
})
...
...
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