From a87fe9eed206a058b8eb23e9eb9436b1d277ff80 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Mon, 19 Jul 2021 22:06:07 +0200 Subject: [PATCH] Bug fix --- web_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_view.py b/web_view.py index c6a4bfc..f3d70ef 100755 --- a/web_view.py +++ b/web_view.py @@ -556,7 +556,7 @@ def osm_object(osm_type, osm_id): if osm_type == "node": return model.Point.query.get(osm_id) - src_id = osm_id * {'way': 1, 'relation': -1}[osm_type] + src_id = int(osm_id) * {'way': 1, 'relation': -1}[osm_type] for cls in model.Line, model.Polygon: obj = cls.query.get(src_id) if obj: