Skip to content

Commit

Permalink
Remove translation and NLP APIs and tests from vachan-api app
Browse files Browse the repository at this point in the history
  • Loading branch information
kavitharaju committed Jan 2, 2024
1 parent 5a1887f commit ac9756d
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 9,551 deletions.
15 changes: 15 additions & 0 deletions app/routers/content_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1354,3 +1354,18 @@ async def delete_deleteditems(request: Request,user_details =Depends(get_user_or
log.info('In delete_deleteditems')
deleted_item_count = structurals_crud.cleanup_database(db_=db_)
return {'message': "Database cleanup done!!",'deletedItemCount':deleted_item_count}

@router.get('/v2/jobs', response_model=schemas_nlp.JobStatusResponse,
response_model_exclude_none=True, status_code=200,
responses={502: {"model": schemas.ErrorResponse},
422: {"model": schemas.ErrorResponse},404:{"model": schemas.ErrorResponse}},
tags=['Jobs'])
@get_auth_access_check_decorator
async def check_job_status(request: Request,
job_id:int=Query(...,examples="100000"),user_details =Depends(get_user_or_none),
db_:Session=Depends(get_db)):
'''Checking the status of a job'''
log.info('In check_job_status')
log.debug('job_id:%s', job_id)
result = nlp_sw_crud.check_job_status(db_, job_id)
return result
778 changes: 0 additions & 778 deletions app/routers/translation_apis.py

This file was deleted.

1,538 changes: 0 additions & 1,538 deletions app/test/test_agmt_projects.py

This file was deleted.

Loading

0 comments on commit ac9756d

Please sign in to comment.