Commit 8a7211da by Chris Dodge

remove unused import commands (which were used for temporary profiling). Also…

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.
parent 905199b5
...@@ -75,7 +75,7 @@ def get_course_for_item(location): ...@@ -75,7 +75,7 @@ def get_course_for_item(location):
return courses[0] 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: if course_id is None:
course_id = get_course_id(location) course_id = get_course_id(location)
......
...@@ -2,8 +2,6 @@ import pymongo ...@@ -2,8 +2,6 @@ import pymongo
import sys import sys
import logging import logging
import copy import copy
import time
import traceback
from bson.son import SON from bson.son import SON
from fs.osfs import OSFS from fs.osfs import OSFS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment