X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/64146b4f3614854e6a0f8430f27261fe0a0ca26c..de29e9b3f59d7a06fbe2e32096328bd8a6ed2b3a:/lib/daemons/gpx_import.rb?ds=sidebyside diff --git a/lib/daemons/gpx_import.rb b/lib/daemons/gpx_import.rb index 4445d1ec0..a0344b58c 100755 --- a/lib/daemons/gpx_import.rb +++ b/lib/daemons/gpx_import.rb @@ -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