adrienbrdne commited on
Commit
7c7e8ff
·
verified ·
1 Parent(s): f9dc62b

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -5
api.py CHANGED
@@ -233,11 +233,8 @@ async def add_single_research_paper(arxiv_id: str):
233
  # will be 201 (from decorator) unless an HTTPException overrides it or we change the decorator based on logic.
234
  # For simplicity here, we'll return it in the body and let the decorator's 201 stand if no error.
235
  # A more advanced setup might change the response status dynamically.
236
- return {
237
- "message": message,
238
- "data": paper_data,
239
- "response_status_info": status_code_response
240
- }
241
 
242
  except HTTPException as e: # Re-raise HTTPExceptions
243
  logger.error(f"HTTPException during Neo4j operation for {arxiv_id}: {e.detail}")
 
233
  # will be 201 (from decorator) unless an HTTPException overrides it or we change the decorator based on logic.
234
  # For simplicity here, we'll return it in the body and let the decorator's 201 stand if no error.
235
  # A more advanced setup might change the response status dynamically.
236
+
237
+ return {"data": paper_data}
 
 
 
238
 
239
  except HTTPException as e: # Re-raise HTTPExceptions
240
  logger.error(f"HTTPException during Neo4j operation for {arxiv_id}: {e.detail}")