Skip to content

Commit 4fc349a

Browse files
author
Chiara Rasi
committed
Remove unused paranms
1 parent b6f1457 commit 4fc349a

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

preClinVar/main.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@ async def validate(api_key: str = Form(), json_file: UploadFile = File(...)):
4343

4444
# And use it in POST request to API
4545
data = {
46-
"actions": [{"type": "AddData", "targetDb": "clinvar", "data": {"content": submission_obj}}]
46+
"actions": [
47+
{
48+
"type": "AddData",
49+
"targetDb": "clinvar",
50+
"data": {"content": submission_obj},
51+
}
52+
]
4753
}
4854
resp = requests.post(VALIDATE_SUBMISSION_URL, data=json.dumps(data), headers=header)
4955
return JSONResponse(
@@ -63,7 +69,13 @@ async def dry_run(api_key: str = Form(), json_file: UploadFile = File(...)):
6369

6470
# And use it in POST request to API
6571
data = {
66-
"actions": [{"type": "AddData", "targetDb": "clinvar", "data": {"content": submission_obj}}]
72+
"actions": [
73+
{
74+
"type": "AddData",
75+
"targetDb": "clinvar",
76+
"data": {"content": submission_obj},
77+
}
78+
]
6779
}
6880
resp = requests.post(DRY_RUN_SUBMISSION_URL, data=json.dumps(data), headers=header)
6981

@@ -127,7 +139,9 @@ async def tsv_2_json(
127139
)
128140
return JSONResponse(
129141
status_code=400,
130-
content={"message": f"Created json file contains validation errors: {valid_results[1]}"},
142+
content={
143+
"message": f"Created json file contains validation errors: {valid_results[1]}"
144+
},
131145
)
132146

133147

@@ -180,5 +194,7 @@ async def csv_2_json(
180194
)
181195
return JSONResponse(
182196
status_code=400,
183-
content={"message": f"Created json file contains validation errors: {valid_results[1]}"},
197+
content={
198+
"message": f"Created json file contains validation errors: {valid_results[1]}"
199+
},
184200
)

0 commit comments

Comments
 (0)