Skip to content

Commit 38ec5f8

Browse files
committed
feat: replace hardcoded RRID with one set in schema instance config
1 parent 566194d commit 38ec5f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dandiapi/api/models/metadata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from typing import TYPE_CHECKING
44
from uuid import uuid4
55

6+
from django.conf import settings
7+
68
if TYPE_CHECKING:
79
import datetime
810

@@ -19,7 +21,8 @@ def published_by(self, now: datetime.datetime):
1921
'wasAssociatedWith': [
2022
{
2123
'id': uuid4().urn,
22-
'identifier': 'RRID:SCR_017571',
24+
# todo: handle the case where `instance_identifier` is None
25+
'identifier': settings.DANDI_SCHEMA_INSTANCE_CONFIG.instance_identifier,
2326
'name': 'DANDI API',
2427
# TODO: version the API
2528
'version': '0.1.0',

0 commit comments

Comments
 (0)