From f5e60412ee3fb3c9e73d48126534b2903ccd6c77 Mon Sep 17 00:00:00 2001
From: kimth <kimt@mit.edu>
Date: Sun, 19 Aug 2012 11:02:03 -0400
Subject: [PATCH] Send multiple files to xqueue

---
 common/lib/capa/capa/xqueue_interface.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/lib/capa/capa/xqueue_interface.py b/common/lib/capa/capa/xqueue_interface.py
index be0c3aa7ca7..40c88b72f88 100644
--- a/common/lib/capa/capa/xqueue_interface.py
+++ b/common/lib/capa/capa/xqueue_interface.py
@@ -97,11 +97,11 @@ class XQueueInterface(object):
     def _send_to_queue(self, header, body, files_to_upload):
         payload = {'xqueue_header': header,
                    'xqueue_body'  : body}
-        files = None
+        files = {} 
         for f in files_to_upload:
             files.update({ f.name: f })
 
-        return self._http_post(self.url+'/xqueue/submit/', payload, files)
+        return self._http_post(self.url+'/xqueue/submit/', payload, files=files)
 
 
     def _http_post(self, url, data, files=None):
-- 
GitLab