diff options
author | Sonja Galovic <galovicsonja@gmail.com> | 2022-05-19 21:55:59 +0200 |
---|---|---|
committer | Sonja Galovic <galovicsonja@gmail.com> | 2022-05-19 21:55:59 +0200 |
commit | 67bd7451128193517edcbdb61182d0f3800a46dc (patch) | |
tree | 1fc2ce998c9037f7e4037469d23e371a53a60830 /backend | |
parent | 573019527eae41128b0716930dc0cfa0b019d317 (diff) | |
parent | 07b6cce2538240db0de979e205bf56394b771fe4 (diff) |
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into redesign
# Conflicts:
# frontend/src/app/_pages/experiment/experiment.component.ts
Diffstat (limited to 'backend')
-rw-r--r-- | backend/api/api/Controllers/DatasetController.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/api/api/Controllers/DatasetController.cs b/backend/api/api/Controllers/DatasetController.cs index 849d9884..c93ac9db 100644 --- a/backend/api/api/Controllers/DatasetController.cs +++ b/backend/api/api/Controllers/DatasetController.cs @@ -251,9 +251,14 @@ namespace api.Controllers return NotFound($"Dataset with ID = {id} or user with ID = {uploaderId} not found"); dataset.lastUpdated = DateTime.UtcNow; - _datasetService.Update(uploaderId, id, dataset); + if (!dataset.isPreProcess) + { + FileModel fileModel = _fileService.getFile(dataset.fileId); + _mlConnectionService.PreProcess(dataset, fileModel.path, uploaderId); + } + return Ok($"Dataset with ID = {id} updated"); } |