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
150b5cd2
Commit
150b5cd2
authored
May 21, 2014
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3816 from cpennington/ok-psychometrics
Fix PsychometricData query
parents
4df73548
d52c58c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
lms/djangoapps/psychometrics/psychoanalyze.py
+1
-1
No files found.
lms/djangoapps/psychometrics/psychoanalyze.py
View file @
150b5cd2
...
...
@@ -127,7 +127,7 @@ def problems_with_psychometric_data(course_id):
Return dict of {problems (location urls): count} for which psychometric data is available.
Does this for a given course_id.
'''
pmdset
=
PsychometricData
.
objects
.
using
(
db
)
.
filter
(
studentmodule__course_id
=
course_id
.
to_deprecated_string
()
)
pmdset
=
PsychometricData
.
objects
.
using
(
db
)
.
filter
(
studentmodule__course_id
=
course_id
)
plist
=
[
p
[
'studentmodule__module_state_key'
]
for
p
in
pmdset
.
values
(
'studentmodule__module_state_key'
)
.
distinct
()]
problems
=
dict
((
p
,
pmdset
.
filter
(
studentmodule__module_state_key
=
p
)
.
count
())
for
p
in
plist
)
...
...
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