FIX: ensures file extension doesnt have a leading point (#7449)

This commit is contained in:
Joffrey JAFFEUX 2019-04-27 14:00:51 +02:00 committed by GitHub
parent 6952510fc4
commit de79313f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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|