Reorder LMS imports using isort
This commit is contained in:
@@ -6,7 +6,6 @@ import sys
|
||||
from optparse import make_option
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from mailsnake import MailSnake
|
||||
|
||||
|
||||
|
||||
@@ -4,15 +4,10 @@ Synchronizes the announcement list with all active students.
|
||||
import logging
|
||||
from optparse import make_option
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
from .mailchimp_sync_course import (
|
||||
connect_mailchimp, get_cleaned,
|
||||
get_subscribed, get_unsubscribed,
|
||||
subscribe_with_data
|
||||
)
|
||||
from .mailchimp_sync_course import connect_mailchimp, get_cleaned, get_subscribed, get_unsubscribed, subscribe_with_data
|
||||
|
||||
log = logging.getLogger('edx.mailchimp')
|
||||
|
||||
|
||||
@@ -1,21 +1,19 @@
|
||||
"""
|
||||
Synchronizes a mailchimp list with the students of a course.
|
||||
"""
|
||||
import itertools
|
||||
import logging
|
||||
import math
|
||||
import random
|
||||
import itertools
|
||||
from collections import namedtuple
|
||||
from itertools import chain
|
||||
from optparse import make_option
|
||||
from collections import namedtuple
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from mailsnake import MailSnake
|
||||
|
||||
from student.models import UserProfile, unique_id_for_user
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
|
||||
from student.models import UserProfile, unique_id_for_user
|
||||
|
||||
BATCH_SIZE = 15000
|
||||
# If you try to subscribe with too many users at once
|
||||
|
||||
Reference in New Issue
Block a user