Skip to content

Commit

Permalink
community id changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jrybicki-jsc committed Jan 5, 2024
1 parent f390198 commit 2535491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uploadflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def create_template(hrespo):
hrespo[k] = json.loads(v)
except:
pass

print("Metadata record: ", hrespo)


rec = {
"titles": [{"title": hrespo["title"]}],
Expand All @@ -32,7 +31,7 @@ def create_template(hrespo):
],
"community": hrespo["community"], #"2d58eb08-af65-4cad-bd25-92f1a17d325b",
"community_specific": {
"2dc5046b-06b6-449f-bd49-73009c5303b1": {
"c44023c2-b0c1-4785-9adb-087ccd839e79": {
"helmholtz centre": ["Forschungszentrum Jülich"]
}
},
Expand Down Expand Up @@ -92,6 +91,7 @@ def upload(files: dict, **kwargs):
print("Got following metadata", entry)

template = create_template(hrespo=entry["metadata"])
print("Submission template: ", template)
community = get_community(server=server, community_id=template["community"])
if not community:
print("Not existing community")
Expand Down

0 comments on commit 2535491

Please sign in to comment.