diff options
Diffstat (limited to 'app/presenters/packages')
-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 |