mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Merge branch 'master' of github.com:neocities/neocities
This commit is contained in:
commit
a546c88bad
2 changed files with 8 additions and 4 deletions
|
@ -62,9 +62,8 @@ def browse_sites_dataset
|
||||||
when 'followers'
|
when 'followers'
|
||||||
ds = ds.order :follow_count.desc, :updated_at.desc
|
ds = ds.order :follow_count.desc, :updated_at.desc
|
||||||
when 'supporters'
|
when 'supporters'
|
||||||
ds = ds.exclude plan_type: nil
|
ds = ds.where id: Site.supporter_ids
|
||||||
ds = ds.exclude plan_type: 'free'
|
ds = ds.order :follow_count.desc, :views.desc, :site_updated_at.desc
|
||||||
ds = ds.order :views.desc, :site_updated_at.desc
|
|
||||||
when 'featured'
|
when 'featured'
|
||||||
ds = ds.exclude featured_at: nil
|
ds = ds.exclude featured_at: nil
|
||||||
ds = ds.order :featured_at.desc
|
ds = ds.order :featured_at.desc
|
||||||
|
|
|
@ -717,7 +717,12 @@ class Site < Sequel::Model
|
||||||
expected_outcodes: [0, 1]
|
expected_outcodes: [0, 1]
|
||||||
)
|
)
|
||||||
|
|
||||||
output = line.run path: uploaded_file[:tempfile].path
|
begin
|
||||||
|
output = line.run path: uploaded_file[:tempfile].path
|
||||||
|
rescue Terrapin::ExitStatusError => e
|
||||||
|
puts "WARNING: CLAMAV FAILED #{username} #{uploaded_file[:tempfile].path} #{e.message}"
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
return true if output == ''
|
return true if output == ''
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue