Skip to content
Snippets Groups Projects
Commit 69a5a2dd authored by Jedrzej Rybicki's avatar Jedrzej Rybicki
Browse files

updates for new md schema

parent 0bffac70
No related branches found
No related tags found
No related merge requests found
Pipeline #92425 passed
...@@ -36,9 +36,10 @@ def get_record_template(): ...@@ -36,9 +36,10 @@ def get_record_template():
"creators":[{"creator_name": "eflows4HPC"}], "creators":[{"creator_name": "eflows4HPC"}],
"descriptions": "descriptions":
[{"description": "Output of eflows4HPC DLS", "description_type": "Abstract"}], [{"description": "Output of eflows4HPC DLS", "description_type": "Abstract"}],
"community": "a9217684-945b-4436-8632-cac271f894ed", "community" : "2d58eb08-af65-4cad-bd25-92f1a17d325b",
'community_specific': "community_specific" :{
{'91ae5d2a-3848-4693-9f7d-cbd141172ef0': {'helmholtz centre': ['Forschungszentrum Jülich']}}, "90942261-4637-4ac0-97b8-12e1edb38739": {"helmholtz centre": ["Forschungszentrum Jülich"]}
},
"open_access": True} "open_access": True}
def create_draft_record(server: str, token: str, record): def create_draft_record(server: str, token: str, record):
......
...@@ -98,9 +98,10 @@ def upload_example(): ...@@ -98,9 +98,10 @@ def upload_example():
"description_type": "Abstract" "description_type": "Abstract"
} }
], ],
"community": "a9217684-945b-4436-8632-cac271f894ed", "community" : "2d58eb08-af65-4cad-bd25-92f1a17d325b",
'community_specific': "community_specific" :{
{'91ae5d2a-3848-4693-9f7d-cbd141172ef0': {'helmholtz centre': ['Forschungszentrum Jülich']}}, "90942261-4637-4ac0-97b8-12e1edb38739": {"helmholtz centre": ["Forschungszentrum Jülich"]}
},
"open_access": hrespo['open_access']=="True" "open_access": hrespo['open_access']=="True"
} }
r = create_draft_record(server=server, token=token, record=template) r = create_draft_record(server=server, token=token, record=template)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment