aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-19 22:15:55 +0200
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-19 22:15:55 +0200
commitfc4d61340181a6249733b4f34f6252d24334af64 (patch)
tree0bb0f5a4e1fc04a8fd468105b27e5f0055d1afe1 /backend
parentf51b5e2de9e29a0a3ab998f335c110131cb40ce7 (diff)
parent67bd7451128193517edcbdb61182d0f3800a46dc (diff)
Merge branch 'redesign' of http://gitlab.pmf.kg.ac.rs/igrannonica/neuronstellar into Redesign
Diffstat (limited to 'backend')
-rw-r--r--backend/api/api/Controllers/DatasetController.cs7
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");
}