Permalink
Browse files

Take change priority when updating Entities to newly added

  • Loading branch information...
1 parent 90d6b8a commit d67f18a42064b88b4d2e43922a0c1378227d47fa @andey committed Jan 26, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/tasks/update.rake
View
@@ -4,7 +4,10 @@ namespace :update do
task :entity => :environment do
# select Entity
- @entity = Entity.order(:updated_at).first
+ @entity = Entity.where(:comment_karma => 0, :wikipedia_hits => 0).first
+ @entity ||= Entity.order(:updated_at).first
+ puts "UPDATE ENTITY: #{@entity.name}"
+
url = @entity.entities_links.where(:entities_links_icon_id => 1).first
#acquire

0 comments on commit d67f18a

Please sign in to comment.