Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
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-analytics-data-api
Commits
064fc1b0
Commit
064fc1b0
authored
Feb 10, 2014
by
Carlos Andrés Rocha
Committed by
Gerrit Code Review
Feb 10, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Fix PEP 8 errors"
parents
b760c765
71f09d6d
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
5 deletions
+8
-5
.gitignore
+6
-0
Makefile
+1
-1
edx/__init__.py
+0
-1
edx/analytics/__init__.py
+0
-1
edx/analytics/tasks/__init__.py
+0
-1
edx/analytics/tasks/course_enroll.py
+0
-0
edx/analytics/tasks/reports/enrollments.py
+1
-1
No files found.
.gitignore
View file @
064fc1b0
...
...
@@ -34,3 +34,9 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject
# QA
coverage.xml
diff_*.html
*.report
report
Makefile
View file @
064fc1b0
...
...
@@ -27,5 +27,5 @@ coverage: test
diff-quality
--violations
=
pylint
--html-report
diff_quality_pylint.html
# Compute style violations
pep8
>
pep8.report
||
echo
"Not pep8 clean"
pep8
edx
>
pep8.report
||
echo
"Not pep8 clean"
pylint
-f
parseable
edx
>
pylint.report
||
echo
"Not pylint clean"
edx/__init__.py
View file @
064fc1b0
edx/analytics/__init__.py
View file @
064fc1b0
edx/analytics/tasks/__init__.py
View file @
064fc1b0
edx/analytics/tasks/course_enroll.py
View file @
064fc1b0
edx/analytics/tasks/reports/enrollments.py
View file @
064fc1b0
...
...
@@ -190,7 +190,7 @@ class EnrollmentsByWeek(luigi.Task):
# List the dates of the last day of each week requested.
start
,
weeks
=
self
.
date
,
self
.
weeks
days
=
[
start
-
timedelta
(
i
*
7
)
for
i
in
reversed
(
xrange
(
0
,
weeks
))]
days
=
[
start
-
timedelta
(
i
*
7
)
for
i
in
reversed
(
xrange
(
0
,
weeks
))]
# Sample the cumulative data on the requested days.
# Result is NaN if there is no data available for that date.
...
...
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