mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 17:38:11 +08:00
blacken
This commit is contained in:
@@ -171,11 +171,15 @@ class CacheEntry:
|
|||||||
cellxgene_response = get(full_path, headers=headers)
|
cellxgene_response = get(full_path, headers=headers)
|
||||||
elif request.method == "PUT":
|
elif request.method == "PUT":
|
||||||
cellxgene_response = put(
|
cellxgene_response = put(
|
||||||
full_path, headers=headers, data=request.data,
|
full_path,
|
||||||
|
headers=headers,
|
||||||
|
data=request.data,
|
||||||
)
|
)
|
||||||
elif request.method == "POST":
|
elif request.method == "POST":
|
||||||
cellxgene_response = post(
|
cellxgene_response = post(
|
||||||
full_path, headers=headers, data=request.data,
|
full_path,
|
||||||
|
headers=headers,
|
||||||
|
data=request.data,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise CellxgeneException(
|
raise CellxgeneException(
|
||||||
@@ -195,7 +199,9 @@ class CacheEntry:
|
|||||||
resp_headers[h] = cellxgene_response.headers[h]
|
resp_headers[h] = cellxgene_response.headers[h]
|
||||||
|
|
||||||
gateway_response = make_response(
|
gateway_response = make_response(
|
||||||
gateway_content, cellxgene_response.status_code, resp_headers,
|
gateway_content,
|
||||||
|
cellxgene_response.status_code,
|
||||||
|
resp_headers,
|
||||||
)
|
)
|
||||||
|
|
||||||
return gateway_response
|
return gateway_response
|
||||||
|
|||||||
@@ -31,10 +31,16 @@ enable_upload = os.environ.get("GATEWAY_ENABLE_UPLOAD", "").lower() in [
|
|||||||
]
|
]
|
||||||
enable_annotations = os.environ.get(
|
enable_annotations = os.environ.get(
|
||||||
"GATEWAY_ENABLE_ANNOTATIONS", ""
|
"GATEWAY_ENABLE_ANNOTATIONS", ""
|
||||||
).lower() in ["true", "1",]
|
).lower() in [
|
||||||
|
"true",
|
||||||
|
"1",
|
||||||
|
]
|
||||||
enable_backed_mode = os.environ.get(
|
enable_backed_mode = os.environ.get(
|
||||||
"GATEWAY_ENABLE_BACKED_MODE", ""
|
"GATEWAY_ENABLE_BACKED_MODE", ""
|
||||||
).lower() in ["true", "1",]
|
).lower() in [
|
||||||
|
"true",
|
||||||
|
"1",
|
||||||
|
]
|
||||||
|
|
||||||
env_vars = {
|
env_vars = {
|
||||||
"CELLXGENE_LOCATION": cellxgene_location,
|
"CELLXGENE_LOCATION": cellxgene_location,
|
||||||
|
|||||||
Reference in New Issue
Block a user