Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

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 b4e832b commit d4876d1
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 d4876d1

Please sign in to comment.