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
da166f77
Commit
da166f77
authored
Jun 10, 2012
by
ichuang
Committed by
Matthew Mongeau
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dogfood -> use CorrectMap
parent
bb25fed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/lib/dogfood/check.py
+2
-2
No files found.
lms/lib/dogfood/check.py
View file @
da166f77
...
...
@@ -44,9 +44,9 @@ def check_problem_code(ans,the_lcp,correct_answers,false_answers):
fp
=
the_lcp
.
system
.
filestore
.
open
(
'problems/
%
s.xml'
%
pfn
)
test_lcp
=
lcp
.
LoncapaProblem
(
fp
,
'1'
,
system
=
the_lcp
.
system
)
if
not
(
test_lcp
.
grade_answers
(
correct_answers
)
[
'1_2_1'
]
==
'correct'
):
if
not
(
test_lcp
.
grade_answers
(
correct_answers
)
.
get_correctness
(
'1_2_1'
)
==
'correct'
):
is_ok
=
False
if
(
test_lcp
.
grade_answers
(
false_answers
)
[
'1_2_1'
]
==
'correct'
):
if
(
test_lcp
.
grade_answers
(
false_answers
)
.
get_correctness
(
'1_2_1'
)
==
'correct'
):
is_ok
=
False
except
Exception
,
err
:
is_ok
=
False
...
...
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