Fix bug with simple refs support (not lists)
This commit is contained in:
parent
5fd77aebb5
commit
a05e9c4932
@ -412,25 +412,13 @@ function process_way(profile, way, result, relations)
|
|||||||
if v then
|
if v then
|
||||||
ref = ref .. k .. ' $' .. v
|
ref = ref .. k .. ' $' .. v
|
||||||
else
|
else
|
||||||
print(ref)
|
|
||||||
ref = ref .. k
|
ref = ref .. k
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
result.ref = ref
|
result.ref = ref
|
||||||
-- count = 0
|
|
||||||
-- for k, v in pairs(matched_refs) do
|
|
||||||
-- count = count + 1
|
|
||||||
-- end
|
|
||||||
-- if count > 1 then
|
|
||||||
-- print('---', way:id())
|
|
||||||
-- for k, v in pairs(matched_refs) do
|
|
||||||
-- print(k, v)
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function process_relation(profile, relation, result)
|
function process_relation(profile, relation, result)
|
||||||
|
@ -49,7 +49,7 @@ function Relations.MatchToRef(relations, ref)
|
|||||||
local result_match = {}
|
local result_match = {}
|
||||||
|
|
||||||
for _, r in ipairs(references) do
|
for _, r in ipairs(references) do
|
||||||
result_match[r] = nil
|
result_match[r] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, rel in ipairs(relations) do
|
for _, rel in ipairs(relations) do
|
||||||
|
Loading…
Reference in New Issue
Block a user