Skip to content

Commit 1a0b28d

Browse files
committed
Merge pull request #86 from arbisoft/fix_pylint_issues
fixed all posible pylint issues
2 parents 9c10400 + a38e985 commit 1a0b28d

File tree

6 files changed

+283
-46
lines changed

6 files changed

+283
-46
lines changed

edx_sga/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
"""
2+
Module for StaffGradedAssignmentXBlock.
3+
"""
4+
15
from .sga import StaffGradedAssignmentXBlock

edx_sga/management/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# pylint: disable=missing-docstring
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# pylint: disable=missing-docstring

edx_sga/management/commands/sga_migrate_submissions.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
Django command which migrates existing SGA submissions for a course from all
3+
old SGA implementation before v0.4.0 to newer version that uses the
4+
'submissions' application.
5+
"""
16
import json
27

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

2934
student_modules = StudentModule.objects.filter(
30-
course_id=course.id).filter(
31-
module_state_key__contains='edx_sga')
35+
course_id=course.id
36+
).filter(
37+
module_state_key__contains='edx_sga'
38+
)
3239

3340
blocks = {}
3441
for student_module in student_modules:

0 commit comments

Comments
 (0)