This commit is contained in:
unknown
2023-12-09 17:52:53 +03:30
parent 6464557956
commit ede10a2efe
36 changed files with 2252 additions and 1821 deletions
+1 -2
View File
@@ -246,7 +246,6 @@ class TestResultsProvider with ChangeNotifier {
};
di.FormData formData = new di.FormData.fromMap({
"batch_id": batchId,
'model_type': 'TestResult',
"file": di.MultipartFile.fromBytes(imageListInt, filename: fileName)
});
@@ -268,7 +267,7 @@ class TestResultsProvider with ChangeNotifier {
await addImage(batchId, image.bytes, image.path!);
}
dynamic vals = values;
vals['file_batch_id'] = batchId;
vals['batch_id'] = batchId;
// int counter = 0;
// if (images.length != 0) {