From 4468fee8e5948d63506b2bfe6e6adb5239cc8000 Mon Sep 17 00:00:00 2001 From: kimth Date: Mon, 27 Aug 2012 19:15:28 -0400 Subject: [PATCH] Define dateformat variable in xqueue_interface --- common/lib/capa/capa/capa_problem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/capa/capa/capa_problem.py b/common/lib/capa/capa/capa_problem.py index 9dc7658884..3a847f8306 100644 --- a/common/lib/capa/capa/capa_problem.py +++ b/common/lib/capa/capa/capa_problem.py @@ -205,7 +205,7 @@ class LoncapaProblem(object): ''' Returns True if any part of the problem has been submitted to an external queue ''' - return any([self.correct_map.is_queued(answer_id) for answer_id in self.correct_map]) + return any(self.correct_map.is_queued(answer_id) for answer_id in self.correct_map) def get_recentmost_queuetime(self):