исправлено удаление для ExperimentParameters

This commit is contained in:
HellsSenju 2024-11-19 16:24:05 +04:00
parent 3002be30dd
commit d986305ee1

View File

@ -81,7 +81,8 @@ async def get_experiment_parameters_by_exp_category(hash: str):
@router.delete('/{id}/delete')
async def delete_experiment_parameters(id: int):
try:
is_deleted = await delete(LoadParameters, id)
is_deleted = await delete(ExperimentParameters, id)
if is_deleted:
return {"message": "Запись <ExperimentParameters> успешно удалена"}
else: