diff --git a/swh/web/common/service.py b/swh/web/common/service.py --- a/swh/web/common/service.py +++ b/swh/web/common/service.py @@ -480,7 +480,7 @@ ValueError if the identifier provided is not of sha1 nature. """ - sha1_bin_list = (_to_sha1_bin(sha1_git) for sha1_git in sha1_git_list) + sha1_bin_list = [_to_sha1_bin(sha1_git) for sha1_git in sha1_git_list] releases = storage.release_get(sha1_bin_list) or [] return (converters.from_release(r) for r in releases) @@ -520,7 +520,7 @@ ValueError if the identifier provided is not of sha1 nature. """ - sha1_bin_list = (_to_sha1_bin(sha1_git) for sha1_git in sha1_git_list) + sha1_bin_list = [_to_sha1_bin(sha1_git) for sha1_git in sha1_git_list] revisions = storage.revision_get(sha1_bin_list) or [] return (converters.from_revision(r) for r in revisions)