From 69a5a2ddf6ae69898cd816dae024e12655d8616e Mon Sep 17 00:00:00 2001
From: jrybicki-jsc <j.rybicki@fz-juelich.de>
Date: Fri, 18 Feb 2022 11:55:59 +0100
Subject: [PATCH] updates for new md schema

---
 dags/b2shareoperator.py | 7 ++++---
 dags/uploadflow.py      | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/dags/b2shareoperator.py b/dags/b2shareoperator.py
index 31f071a..4b31958 100644
--- a/dags/b2shareoperator.py
+++ b/dags/b2shareoperator.py
@@ -36,9 +36,10 @@ def get_record_template():
             "creators":[{"creator_name": "eflows4HPC"}],
             "descriptions":
               [{"description": "Output of eflows4HPC DLS", "description_type": "Abstract"}],
-            "community": "a9217684-945b-4436-8632-cac271f894ed",
-            'community_specific':
-               {'91ae5d2a-3848-4693-9f7d-cbd141172ef0': {'helmholtz centre': ['Forschungszentrum Jülich']}},
+            "community" : "2d58eb08-af65-4cad-bd25-92f1a17d325b",
+            "community_specific" :{
+                "90942261-4637-4ac0-97b8-12e1edb38739": {"helmholtz centre": ["Forschungszentrum Jülich"]}
+                },
             "open_access": True}
 
 def create_draft_record(server: str, token: str, record):
diff --git a/dags/uploadflow.py b/dags/uploadflow.py
index 6df4781..c460b3f 100644
--- a/dags/uploadflow.py
+++ b/dags/uploadflow.py
@@ -98,9 +98,10 @@ def upload_example():
                     "description_type": "Abstract"
                 }
                 ],
-            "community": "a9217684-945b-4436-8632-cac271f894ed",
-            'community_specific':
-               {'91ae5d2a-3848-4693-9f7d-cbd141172ef0': {'helmholtz centre': ['Forschungszentrum Jülich']}},
+            "community" : "2d58eb08-af65-4cad-bd25-92f1a17d325b",
+            "community_specific" :{
+                "90942261-4637-4ac0-97b8-12e1edb38739": {"helmholtz centre": ["Forschungszentrum Jülich"]}
+                },
             "open_access": hrespo['open_access']=="True"
             }
         r = create_draft_record(server=server, token=token, record=template)
-- 
GitLab