Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
52cc7abe
Commit
52cc7abe
authored
Sep 27, 2018
by
BAIRE Anthony
Browse files
fix urls
parent
07a7ff6d
Pipeline
#41292
failed with stage
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
django/allgo/aio/__init__.py
View file @
52cc7abe
...
...
@@ -570,7 +570,7 @@ class AllgoAio:
headers
=
prepare_headers
(
request
)
headers
[
"Accept"
]
=
"application/json"
async
with
self
.
django_request
(
"GET"
,
"/jobs/%d
/
"
%
job_id
,
async
with
self
.
django_request
(
"GET"
,
"/jobs/%d"
%
job_id
,
headers
=
headers
,
allow_redirects
=
False
)
as
rep
:
if
rep
.
status
!=
200
:
# FIXME: django should be able to return 401 directly
...
...
@@ -681,7 +681,7 @@ class AllgoAio:
for
job_id
in
job_ids
:
headers
=
prepare_headers
(
request
)
headers
[
"Accept"
]
=
"application/json"
async
with
self
.
django_request
(
"GET"
,
"/jobs/%d
/
"
%
job_id
,
async
with
self
.
django_request
(
"GET"
,
"/jobs/%d"
%
job_id
,
headers
=
headers
,
allow_redirects
=
False
)
as
rep
:
if
rep
.
status
==
200
:
js
=
await
rep
.
json
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment