<p></p>
<p>Imho here:<br>
<a href="https://github.com/openstreetmap/osm2pgsql/blob/86ad6d6026a17ae2f714f37e4288330b5ee4a01d/flex-config/generic.lua#L251-L255">https://github.com/openstreetmap/osm2pgsql/blob/86ad6d6026a17ae2f714f37e4288330b5ee4a01d/flex-config/generic.lua#L251-L255</a><br>
and in other flex examples it will never return as at least relation has <code>object.tags.type</code>. Shouldn't it be something like:</p>
<div class="highlight highlight-source-lua"><pre><span class="pl-k">local</span> type <span class="pl-k">=</span> object:<span class="pl-c1">grab_tag</span>(<span class="pl-s"><span class="pl-pds">'</span>type<span class="pl-pds">'</span></span>)
<span class="pl-k">if</span> <span class="pl-c1">clean_tags</span>(object.<span class="pl-smi">tags</span>) <span class="pl-k">then</span>
<span class="pl-k">return</span>
<span class="pl-k">end</span></pre></div>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1441">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353UINOWJDCEPKXWIXKLTGMI2RANCNFSM42ERE63Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353UDRD67WROENG2N5RTTGMI2RA5CNFSM42ERE632YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MTVWPSA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1441",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1441",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>