harmonize use of callback with set_entrance_filter

All other functions except a simple function, so do this here as well.
This commit is contained in:
Sarah Hoffmann
2025-10-28 14:33:45 +01:00
parent 353c985b9f
commit f1fbc04f33
4 changed files with 19 additions and 14 deletions

View File

@@ -109,9 +109,9 @@ Feature: Import of entrance objects by osm2pgsql
Given the lua style file
"""
local flex = require('import-full')
flex.set_entrance_filter{func = function(object)
flex.set_entrance_filter(function(object)
return {entrance='always', extratags = {ref = '1'}}
end}
end)
"""
When loading osm data
"""