Skip to content

Commit f67aba5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7c34b0e commit f67aba5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed
+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""
22
Constants for ol-openedx-course-sync plugin
33
"""
4+
45
COURSE_RERUN_STATE_SUCCEEDED = "succeeded"

src/ol_openedx_course_sync/signals.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
from common.djangoapps.course_action_state.models import CourseRerunState
88
from django.db.models.signals import post_save
99
from django.dispatch import receiver
10-
from xmodule.modulestore.django import SignalHandler
11-
10+
from ol_openedx_course_sync.constants import COURSE_RERUN_STATE_SUCCEEDED
1211
from ol_openedx_course_sync.models import CourseSyncMap, CourseSyncParentOrg
1312
from ol_openedx_course_sync.tasks import async_course_sync
14-
from ol_openedx_course_sync.constants import COURSE_RERUN_STATE_SUCCEEDED
13+
from xmodule.modulestore.django import SignalHandler
1514

1615
log = logging.getLogger(__name__)
1716

src/ol_openedx_course_sync/tasks.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Tasks for the ol-openedx-course-sync plugin.
33
"""
44

5-
from celery import shared_task # pylint: disable=import-error
65
from celery.utils.log import get_task_logger
76
from ol_openedx_course_sync.utils import copy_course_content
87
from opaque_keys.edx.locator import CourseLocator
@@ -32,7 +31,9 @@ def async_course_sync(user_id, source_course_id, dest_course_id):
3231
)
3332

3433
logger.debug(
35-
"Copying published course content from %s to %s", source_course_key, dest_course_key
34+
"Copying published course content from %s to %s",
35+
source_course_key,
36+
dest_course_key,
3637
)
3738
# copy published branch content
3839
copy_course_content(

0 commit comments

Comments
 (0)