]> git.openstreetmap.org Git - rails.git/blobdiff - lib/daemons/gpx_import.rb
Combine site permissions declarations
[rails.git] / lib / daemons / gpx_import.rb
index 4445d1ec081aaefcd5ff193f95daf3384728d56e..a0344b58c95f9495c35537fbfcbddd49b900dff7 100755 (executable)
@@ -20,7 +20,7 @@ loop do
     begin
       gpx = trace.import
 
-      if gpx.actual_points > 0
+      if gpx.actual_points.positive?
         Notifier.gpx_success(trace, gpx.actual_points).deliver
       else
         Notifier.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver