From 6817a41155e2aef66b3f14536b9d2ac3d1ea642c Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Fri, 31 May 2019 15:27:38 -0400 Subject: [PATCH] Address review comments. refs #15093 Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- .../api/script/populate-file-info-columns-in-collections.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/script/populate-file-info-columns-in-collections.rb b/services/api/script/populate-file-info-columns-in-collections.rb index b0bc5a21a0..f7cb024b26 100755 --- a/services/api/script/populate-file-info-columns-in-collections.rb +++ b/services/api/script/populate-file-info-columns-in-collections.rb @@ -70,7 +70,7 @@ require "group_pdhs" def main distinct_pdh_count = ActiveRecord::Base.connection.exec_query( - "SELECT DISTINCT portable_data_hash FROM collections" + "SELECT DISTINCT portable_data_hash FROM collections where file_count=0" ).rows.count # Generator that queries for all the distinct pdhs greater than last_pdh -- 2.30.2