Skip to content

Commit

Permalink
fix: condition to migration to "0.6.0" and beyond
Browse files Browse the repository at this point in the history
On the target version being at least "0.6.0"
  • Loading branch information
candleindark committed Feb 2, 2025
1 parent aeff664 commit d5aef64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandischema/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def migrate(
if instance_ver == target_ver:
return obj

if version2tuple(schema_version) < version2tuple("0.6.0"):
if instance_ver < version2tuple("0.6.0") <= target_ver:
for val in obj.get("about", []):
if "schemaKey" not in val:
if "identifier" in val and "UBERON" in val["identifier"]:
Expand Down

0 comments on commit d5aef64

Please sign in to comment.