File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ async def root():
41
41
42
42
43
43
@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 :
47
45
"""Returns the status (validation) of a test submission to the apitest endpoint."""
48
46
49
47
# Create a submission header
@@ -165,9 +163,7 @@ async def tsv_2_json(
165
163
)
166
164
return JSONResponse (
167
165
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 ]} " },
171
167
)
172
168
173
169
@@ -226,9 +222,7 @@ async def csv_2_json(
226
222
)
227
223
return JSONResponse (
228
224
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 ]} " },
232
226
)
233
227
234
228
@@ -255,9 +249,7 @@ async def delete(api_key: str = Form(), clinvar_accession: str = Form()):
255
249
header = build_header (api_key )
256
250
257
251
# Create a submission deletion object
258
- delete_obj = {
259
- "clinvarDeletion" : {"accessionSet" : [{"accession" : clinvar_accession }]}
260
- }
252
+ delete_obj = {"clinvarDeletion" : {"accessionSet" : [{"accession" : clinvar_accession }]}}
261
253
262
254
data = {
263
255
"actions" : [
You can’t perform that action at this time.
0 commit comments