Skip to content

Commit

Permalink
fix reference in data categories upgrade migration (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Preston authored Aug 30, 2022
1 parent 0c55f6b commit be3b6b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def run_migration(migration_direction: str) -> None:
if counter % 10 == 0:
logger.info("Upgrading fideslang categories")

collections = dataset.get("collections")
dataset_json = dataset.dataset
collections = dataset_json.get("collections")

if collections:
for collection in collections:
Expand Down

0 comments on commit be3b6b4

Please sign in to comment.