api fixes
This commit is contained in:
parent
21fd6d3126
commit
1bbe59b6a7
2 changed files with 6 additions and 1 deletions
|
@ -197,7 +197,8 @@ class ApiController < ApplicationController
|
|||
|
||||
end
|
||||
|
||||
segments_to_fetch = list_of_way_segments.uniq - segment_ids
|
||||
# - [0] in case some thing links to segment 0 which doesn't exist. Shouldn't actually ever happen but it does. FIXME: file a ticket for this
|
||||
segments_to_fetch = (list_of_way_segments.uniq - segment_ids) - [0]
|
||||
|
||||
if segments_to_fetch.length > 0
|
||||
segments += Segment.find(segments_to_fetch)
|
||||
|
|
|
@ -78,3 +78,7 @@ HTTP_EXPECTATION_FAILED = 417
|
|||
#
|
||||
COUNT = 0
|
||||
MAX_COUNT = 10
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue