diff --git a/app/models/reports/top_uploads.rb b/app/models/reports/top_uploads.rb index c27790a3775..cae4284f8a9 100644 --- a/app/models/reports/top_uploads.rb +++ b/app/models/reports/top_uploads.rb @@ -64,7 +64,7 @@ Report.add_report('top_uploads') do |report| builder.where("up.created_at < :end_date", end_date: report.end_date) if extension_filter - builder.where("up.extension = :extension", extension: extension_filter) + builder.where("up.extension = :extension", extension: extension_filter.sub(/^\./, '')) end builder.query.each do |row|