diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-26 09:11:43 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-26 09:11:43 +0300 |
commit | a45525af6e86bf78b3c288e3ffcbdbb84d3e9997 (patch) | |
tree | 9cf2fa9b46f704b9f3b02bf4da25b15c66a0a6a5 /app/presenters | |
parent | 3cfd74f7e176175693f5c9b23c552230f830d33a (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/packages/pypi/simple_package_versions_presenter.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/presenters/packages/pypi/simple_package_versions_presenter.rb b/app/presenters/packages/pypi/simple_package_versions_presenter.rb index 0baa0714463..2bccaf4db72 100644 --- a/app/presenters/packages/pypi/simple_package_versions_presenter.rb +++ b/app/presenters/packages/pypi/simple_package_versions_presenter.rb @@ -13,7 +13,10 @@ module Packages def links refs = [] - available_packages.each_batch do |batch| + available_packages.each_batch do |relation| + batch = relation.preload_files + .preload_pypi_metadatum + batch.each do |package| package_files = package.installable_package_files |