projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28e9a84
)
There's no point importing a trace that is scheduled for deletion.
author
Tom Hughes
<tom@compton.nu>
Thu, 23 Aug 2007 17:26:44 +0000
(17:26 +0000)
committer
Tom Hughes
<tom@compton.nu>
Thu, 23 Aug 2007 17:26:44 +0000
(17:26 +0000)
lib/daemons/gpx_import.rb
patch
|
blob
|
history
diff --git
a/lib/daemons/gpx_import.rb
b/lib/daemons/gpx_import.rb
index e80a519446b283cd82b277712db1c09f15551694..793fde94b8f54c4fe3cb5c000c53c1d72c4c0b4c 100755
(executable)
--- 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