Skip to content

Commit

Permalink
OPT: do not bother calling add_meta on files without metadata to be a…
Browse files Browse the repository at this point in the history
…dded
  • Loading branch information
yarikoptic committed Sep 3, 2020
1 parent 30e89a9 commit cd315f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datalad/plugin/addurls.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def __call__(dataset, urlfile, urlformat, filenameformat,
filename_format='{}'""".format(url_file, url_format, filename_format)

if files_to_add:
meta_rows = [r for r in rows if r["filename_abs"] in files_to_add]
meta_rows = [r for r in rows if r["filename_abs"] in files_to_add and r["meta_args"]]
for r in add_meta(meta_rows):
yield r

Expand Down

0 comments on commit cd315f9

Please sign in to comment.