Skip to content
Snippets Groups Projects
Commit 0ca3f082 authored by Francois Ancien's avatar Francois Ancien
Browse files

Correcting incredibly stupid mistake and adding logs;

parent 60889217
No related branches found
No related tags found
1 merge request!12Improving workflow to update MDC assets
......@@ -28,6 +28,7 @@ def main():
dcat = json.load(f)
for dataset in dcat["dcat:dataset"]:
print(f"Processing locations of policy files for dataset {dataset['@id']}")
dataset_policy_id = dataset.get("policyId")
dataset_policy_obligation = dataset.get("odrl:hasPolicy", {}).get("odrl:obligation", {})
if dataset_policy_obligation:
......@@ -60,4 +61,5 @@ def main():
if __name__ == "__main__":
main()
exit(0)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment