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
b8918cae
Commit
b8918cae
authored
Aug 20, 2014
by
Justin Riley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor clean up to attempt_stats
parent
aee6a83f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/courseware/management/commands/attempt_stats.py
+3
-3
No files found.
lms/djangoapps/courseware/management/commands/attempt_stats.py
View file @
b8918cae
...
...
@@ -70,9 +70,9 @@ def compute_stats(course_id):
for
problem
in
all_problems
:
stat
=
Stats
()
smset
0
=
StudentModule
.
objects
.
filter
(
module_state_key
=
problem
.
id
,
student__is_staff
=
False
)
smset
=
smset0
.
exclude
(
student__groups__name__in
=
exclude_groups
)
smset
=
StudentModule
.
objects
.
filter
(
module_state_key
=
problem
.
id
,
student__is_staff
=
False
)
.
exclude
(
student__groups__name__in
=
exclude_groups
)
for
sm
in
smset
:
stat
.
nassigned
+=
1
ret
=
update_stats
(
sm
,
stat
)
...
...
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