Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f5e60412
Commit
f5e60412
authored
12 years ago
by
kimth
Browse files
Options
Downloads
Patches
Plain Diff
Send multiple files to xqueue
parent
b2599f07
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/capa/capa/xqueue_interface.py
+2
-2
2 additions, 2 deletions
common/lib/capa/capa/xqueue_interface.py
with
2 additions
and
2 deletions
common/lib/capa/capa/xqueue_interface.py
+
2
−
2
View file @
f5e60412
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment