We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45c679a + 176eac0 commit fa3ce1eCopy full SHA for fa3ce1e
dandi/dandiset.py
@@ -139,9 +139,9 @@ def _get_identifier(metadata: dict) -> str | None:
139
id_ = str(id_.get("value", ""))
140
elif id_ is not None:
141
assert isinstance(id_, str)
142
- if id_.startswith("DANDI:"):
143
- # result of https://github.com/dandi/dandi-cli/pull/348 which
144
- id_ = id_[len("DANDI:") :]
+ # result of https://github.com/dandi/dandi-cli/pull/348 which ???
+ # TODO: RF to avoid this evil!!!
+ id_ = id_.split(":", maxsplit=1)[-1]
145
146
assert id_ is None or isinstance(id_, str)
147
return id_
0 commit comments