исправлено удаление для ExperimentParameters
This commit is contained in:
parent
3002be30dd
commit
d986305ee1
@ -81,7 +81,8 @@ async def get_experiment_parameters_by_exp_category(hash: str):
|
|||||||
@router.delete('/{id}/delete')
|
@router.delete('/{id}/delete')
|
||||||
async def delete_experiment_parameters(id: int):
|
async def delete_experiment_parameters(id: int):
|
||||||
try:
|
try:
|
||||||
is_deleted = await delete(LoadParameters, id)
|
is_deleted = await delete(ExperimentParameters, id)
|
||||||
|
|
||||||
if is_deleted:
|
if is_deleted:
|
||||||
return {"message": "Запись <ExperimentParameters> успешно удалена"}
|
return {"message": "Запись <ExperimentParameters> успешно удалена"}
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user