Skip to content

Commit

Permalink
Merge pull request #211 from CogStack/cdb-name-from-model-pack
Browse files Browse the repository at this point in the history
CU-8695yah5d: Fix default name of the CDB on model pack upload.
  • Loading branch information
tomolopolis authored Sep 25, 2024
2 parents 55d159d + 8de1f15 commit d0ae6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/api/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d0ae6ee

Please sign in to comment.