Update api.py
Browse files
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 |
-
|
237 |
-
|
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}")
|