From aaf54c562ef310e7d31a24c692b0813caaf71f72 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Thu, 3 Jan 2013 17:36:57 +0200 Subject: [PATCH] fix in location id for course --- common/lib/capa/capa/inputtypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa/inputtypes.py b/common/lib/capa/capa/inputtypes.py index c968130fdc..86454d4fdb 100644 --- a/common/lib/capa/capa/inputtypes.py +++ b/common/lib/capa/capa/inputtypes.py @@ -873,7 +873,7 @@ class DragAndDropInput(InputTypeBase): self.to_render.add('drag_and_drop_json') try: # for tests and mock up, work normally not in tets self.loaded_attributes['course_folder'] = \ - self.system.course_id.split('/')[1] + self.system.location.split('/')[3] except: self.loaded_attributes['course_folder'] = 'mock' self.to_render.add('course_folder')