dont run if you do not have featured users set
This commit is contained in:
parent
61eea529cb
commit
d04c904f72
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#this breaks seed scripts
|
#this breaks seed scripts
|
||||||
|
|
||||||
unless !ActiveRecord::Base.connection.table_exists?('people') || Rails.env == 'test' || AppConfig[:featured_users].count == Person.featured_users.count
|
unless !ActiveRecord::Base.connection.table_exists?('people') || Rails.env == 'test' || AppConfig[:featured_users].nil? || AppConfig[:featured_users].count == Person.featured_users.count
|
||||||
print "Fetching featured users from remote servers"
|
print "Fetching featured users from remote servers"
|
||||||
AppConfig[:featured_users].each do |x|
|
AppConfig[:featured_users].each do |x|
|
||||||
Webfinger.new(x).fetch
|
Webfinger.new(x).fetch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue