Fix typos and simplification

This commit is contained in:
Patrick Jentsch
2023-04-11 13:30:38 +02:00
parent 2fd7e35b99
commit 4ca2c0c873
5 changed files with 17 additions and 40 deletions

View File

@ -24,11 +24,11 @@ def delete_spacy_model(spacy_nlp_pipeline_model_id):
args=(current_app._get_current_object(), snpm.id)
)
thread.start()
resonse_data = {
response_data = {
'message': \
f'SpaCy NLP Pipeline Model "{snpm.title}" marked for deletion'
}
return resonse_data, 202
return response_data, 202
@bp.route('/spacy-nlp-pipeline-models/<hashid:spacy_nlp_pipeline_model_id>/is_public', methods=['PUT'])