From 8de1f1551e0fa1750a62bd7311657b68d415b354 Mon Sep 17 00:00:00 2001 From: tomolopolis Date: Wed, 25 Sep 2024 15:27:12 +0100 Subject: [PATCH] CU-8695yah5d: Fix default name of the CDB on model pack upload. --- webapp/api/api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/api/api/models.py b/webapp/api/api/models.py index e7749f0f..4be5774e 100644 --- a/webapp/api/api/models.py +++ b/webapp/api/api/models.py @@ -58,7 +58,7 @@ def save(self, *args, **kwargs): concept_db = ConceptDB() unpacked_file_name = self.model_pack.file.name.replace('.zip', '') concept_db.cdb_file.name = os.path.join(unpacked_file_name, 'cdb.dat') - concept_db.name = f'{self.name} - CDB' + concept_db.name = f'{self.name}_CDB' concept_db.save(skip_load=True) self.concept_db = concept_db except Exception as exc: