From 4f26daaa10a4cfa1bf5959d61db4f59dde6f3163 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 23 Aug 2007 17:26:44 +0000 Subject: [PATCH] There's no point importing a trace that is scheduled for deletion. --- lib/daemons/gpx_import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/daemons/gpx_import.rb b/lib/daemons/gpx_import.rb index e80a51944..793fde94b 100755 --- a/lib/daemons/gpx_import.rb +++ b/lib/daemons/gpx_import.rb @@ -12,7 +12,7 @@ logger = ActiveRecord::Base.logger while(true) do ActiveRecord::Base.logger.info("GPX Import daemon wake @ #{Time.now}.") - Trace.find(:all, :conditions => 'inserted = 0').each do |trace| + Trace.find(:all, :conditions => 'inserted = 0 and visible = 1').each do |trace| Signal.trap("TERM") do terminated = true end -- 2.43.2