Skip to content

Commit

Permalink
Merge pull request #86 from arbisoft/fix_pylint_issues
Browse files Browse the repository at this point in the history
fixed all posible pylint issues
  • Loading branch information
carsongee committed Apr 15, 2015
2 parents 9c10400 + a38e985 commit 1a0b28d
Show file tree
Hide file tree
Showing 6 changed files with 283 additions and 46 deletions.
4 changes: 4 additions & 0 deletions edx_sga/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
"""
Module for StaffGradedAssignmentXBlock.
"""

from .sga import StaffGradedAssignmentXBlock
1 change: 1 addition & 0 deletions edx_sga/management/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# pylint: disable=missing-docstring
1 change: 1 addition & 0 deletions edx_sga/management/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# pylint: disable=missing-docstring
11 changes: 9 additions & 2 deletions edx_sga/management/commands/sga_migrate_submissions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
Django command which migrates existing SGA submissions for a course from all
old SGA implementation before v0.4.0 to newer version that uses the
'submissions' application.
"""
import json

from django.core.management.base import BaseCommand, CommandError
Expand Down Expand Up @@ -27,8 +32,10 @@ def handle(self, *args, **options):
course = get_course_by_id(course_key)

student_modules = StudentModule.objects.filter(
course_id=course.id).filter(
module_state_key__contains='edx_sga')
course_id=course.id
).filter(
module_state_key__contains='edx_sga'
)

blocks = {}
for student_module in student_modules:
Expand Down
Loading

0 comments on commit 1a0b28d

Please sign in to comment.