@@ -166,6 +166,8 @@ async def download_files(batch_id: str):
166166 raise HTTPException (
167167 status_code = 404 , detail = f"Error creating ZIP file: { str (e )} "
168168 ) from e
169+
170+
169171@router .websocket ("/socket/{batch_id}" )
170172async def batch_status_updates (
171173 websocket : WebSocket , batch_id : str
@@ -363,6 +365,8 @@ async def get_batch_status(request: Request, batch_id: str):
363365 raise HTTPException (status_code = 403 , detail = "Incorrect user_id" ) from e
364366 else :
365367 raise HTTPException (status_code = 500 , detail = "Internal server error" ) from e
368+
369+
366370@router .get ("/batch-summary/{batch_id}" )
367371async def get_batch_summary (request : Request , batch_id : str ):
368372 """Retrieve batch summary for a given batch ID."""
@@ -730,6 +734,7 @@ async def delete_file_details(request: Request, file_id: str):
730734 logger .error ("Failed to delete file from database" , error = str (e ))
731735 raise HTTPException (status_code = 500 , detail = "Database connection error" ) from e
732736
737+
733738@router .delete ("/delete_all" )
734739async def delete_all_details (request : Request ):
735740 """
@@ -857,4 +862,4 @@ async def list_batch_history(request: Request, offset: int = 0, limit: Optional[
857862 logger .error ("Error fetching batch history" , error = str (e ))
858863 raise HTTPException (
859864 status_code = 500 , detail = "Error retrieving batch history"
860- ) from e
865+ ) from e
0 commit comments