<p></p>
<p dir="auto">Example: <a href="https://www.openstreetmap.org/node/5749689931" rel="nofollow">https://www.openstreetmap.org/node/5749689931</a><br>
Only one way is shown (which is correct) but the number given is 2.<br>
The sum is also wrong in the rarer cases where a node is the first and last node of multiple closed ways (e.g. <a href="https://www.openstreetmap.org/node/4206797803" rel="nofollow">https://www.openstreetmap.org/node/4206797803</a> in which case the node belongs to 19 ways and for 14 of them is the first and the last node).</p>
<p dir="auto">I think the problem may reside here:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/blob/70d7d8d850148f714b70a3297c02a8203214dec6/app/views/browse/_node.html.erb#L17">https://github.com/openstreetmap/openstreetmap-website/blob/70d7d8d850148f714b70a3297c02a8203214dec6/app/views/browse/_node.html.erb#L17</a></p>
<p dir="auto">I have done some tests with a local docker container and using <strong>distinct.count</strong> instead of <strong>count</strong> seemed to solve the problem, but I don't know Ruby on Rails so I haven't created a pull request.</p>
<p dir="auto">Kind regards,<br>
Marco.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3519">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK2H54AQ7UYYH5PTSLVCSUZXANCNFSM5SC7C7TA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJEHMXLBAP4DJHIG2TVCSUZXA5CNFSM5SC7C7TKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RV6XSNA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/3519</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/3519",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3519",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>