remove unused import commands (which were used for temporary profiling). Also change get_lms_link_for_item() to preserve the previous argument ordering. Apparently all callers may not use argument name conventions for the 'preview' argument.
This commit is contained in:
@@ -75,7 +75,7 @@ def get_course_for_item(location):
|
||||
return courses[0]
|
||||
|
||||
|
||||
def get_lms_link_for_item(location, course_id=None, preview=False):
|
||||
def get_lms_link_for_item(location, preview=False, course_id=None):
|
||||
if course_id is None:
|
||||
course_id = get_course_id(location)
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@ import pymongo
|
||||
import sys
|
||||
import logging
|
||||
import copy
|
||||
import time
|
||||
import traceback
|
||||
|
||||
from bson.son import SON
|
||||
from fs.osfs import OSFS
|
||||
|
||||
Reference in New Issue
Block a user