projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f601f01
)
Give up after reporting that the query found too many nodes.
author
Tom Hughes
<tom@compton.nu>
Mon, 30 Jul 2007 21:09:58 +0000
(21:09 +0000)
committer
Tom Hughes
<tom@compton.nu>
Mon, 30 Jul 2007 21:09:58 +0000
(21:09 +0000)
app/controllers/api_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/api_controller.rb
b/app/controllers/api_controller.rb
index 7477ba91797c40cf0de7750586b74e91d2752f44..62633dbb3ddbb6a79e0f38183e61a70621ece0d5 100644
(file)
--- a/
app/controllers/api_controller.rb
+++ b/
app/controllers/api_controller.rb
@@
-146,6
+146,7
@@
class ApiController < ApplicationController
if node_ids.length > 50_000
report_error("You requested too many nodes (limit is 50,000). Either request a smaller area, or use planet.osm")
+ return
end
if node_ids.length == 0