Skip to content

Commit

Permalink
🚚 Rename .identifier to .slug
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Mar 26, 2024
1 parent fdc3a95 commit 4521893
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wetlab/migrations/0012_export_legacy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def export_registry(registry, directory):
df.to_parquet(directory / f"{table_name}.parquet")

# export data to parquet files
directory = Path(f"./lamindb_export/{ln_setup.settings.instance.identifier}/")
directory = Path(f"./lamindb_export/{ln_setup.settings.instance.slug}/")
directory.mkdir(parents=True, exist_ok=True)
print(f"\nExporting data to parquet files in: {directory}\n")
for model_name in CORE_MODELS.keys():
Expand Down
2 changes: 1 addition & 1 deletion wetlab/migrations/0013_import_legacy_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def import_registry(registry, directory):

def import_db(apps, schema_editor):
# import data from parquet files
directory = Path(f"./lamindb_export/{ln_setup.settings.instance.identifier}/")
directory = Path(f"./lamindb_export/{ln_setup.settings.instance.slug}/")
if directory.exists():
for model_name in CORE_MODELS.keys():
registry = getattr(wetlab.models, model_name)
Expand Down

0 comments on commit 4521893

Please sign in to comment.