Skip to content

Commit 1b1dfb7

Browse files
author
Chiara Rasi
committed
black with line 100
1 parent 13d97cd commit 1b1dfb7

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

preClinVar/main.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ async def root():
4141

4242

4343
@app.post("/apitest-status")
44-
async def apitest_status(
45-
api_key: str = Form(), submission_id: str = Form()
46-
) -> JSONResponse:
44+
async def apitest_status(api_key: str = Form(), submission_id: str = Form()) -> JSONResponse:
4745
"""Returns the status (validation) of a test submission to the apitest endpoint."""
4846

4947
# Create a submission header
@@ -165,9 +163,7 @@ async def tsv_2_json(
165163
)
166164
return JSONResponse(
167165
status_code=400,
168-
content={
169-
"message": f"Created json file contains validation errors: {valid_results[1]}"
170-
},
166+
content={"message": f"Created json file contains validation errors: {valid_results[1]}"},
171167
)
172168

173169

@@ -226,9 +222,7 @@ async def csv_2_json(
226222
)
227223
return JSONResponse(
228224
status_code=400,
229-
content={
230-
"message": f"Created json file contains validation errors: {valid_results[1]}"
231-
},
225+
content={"message": f"Created json file contains validation errors: {valid_results[1]}"},
232226
)
233227

234228

@@ -255,9 +249,7 @@ async def delete(api_key: str = Form(), clinvar_accession: str = Form()):
255249
header = build_header(api_key)
256250

257251
# Create a submission deletion object
258-
delete_obj = {
259-
"clinvarDeletion": {"accessionSet": [{"accession": clinvar_accession}]}
260-
}
252+
delete_obj = {"clinvarDeletion": {"accessionSet": [{"accession": clinvar_accession}]}}
261253

262254
data = {
263255
"actions": [

0 commit comments

Comments
 (0)