From 3051c6aca719be45d5cf7bc977ef4624fa3a8f3d Mon Sep 17 00:00:00 2001 From: kimth Date: Mon, 27 Aug 2012 19:41:35 -0400 Subject: [PATCH] Access system.xqueue properly as dict --- common/lib/xmodule/xmodule/capa_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index ef3de02b37..27641af3b5 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -466,7 +466,7 @@ class CapaModule(XModule): if self.lcp.is_queued(): current_time = datetime.datetime.now() prev_submit_time = self.lcp.get_recentmost_queuetime() - waittime_between_requests = self.system.xqueue.waittime + waittime_between_requests = self.system.xqueue['waittime'] if (current_time-prev_submit_time).total_seconds() < waittime_between_requests: msg = 'You must wait at least %d seconds between submissions' % waittime_between_requests return {'success': msg, 'html': ''}