Skip to content

Commit

Permalink
Merge branch 'development' of github.com:UtrechtUniversity/irods-rule…
Browse files Browse the repository at this point in the history
…set-uu into development
  • Loading branch information
lwesterhof committed Jul 12, 2024
2 parents 5543b97 + bfaf4ed commit 92aa3c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/metadata/vault-check-orcid-format.r
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@ def main(rule_args, callback, rei):
genquery.AS_TUPLE,
callback)

metadata_files_list = [ row for row in metadata_files]

for coll in data_packages:
json_file = None

for (coll_, metadata_file) in metadata_files:
for (coll_, metadata_file) in metadata_files_list:
if coll == coll_:
json_file = metadata_file
break

if json_file is None:
callback.writeLine("stdout", "Error: could not find metadata file for {} (schema {})".format(coll, schema))
continue

wrote_package_line = False

md = get_metadata_as_dict(callback, coll + '/' + json_file)
Expand Down

0 comments on commit 92aa3c2

Please sign in to comment.