Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dandi/dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ def _get_identifier(metadata: dict) -> str | None:
id_ = str(id_.get("value", ""))
elif id_ is not None:
assert isinstance(id_, str)
if id_.startswith("DANDI:"):
# result of https://github.com/dandi/dandi-cli/pull/348 which
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]

assert id_ is None or isinstance(id_, str)
return id_
Expand Down