summaryrefslogtreecommitdiffstats
path: root/osm_parser.py
diff options
context:
space:
mode:
authorStefan Hansson <steha708@student.liu.se>2021-01-09 11:27:26 +0100
committerStefan Hansson <steha708@student.liu.se>2021-01-09 11:27:26 +0100
commit978fed58df8322d4195ae112d33a4da193deccc2 (patch)
tree0723e8b92e34371b130b1e1a579a872fad1bad6a /osm_parser.py
parentff702dfc656b289223e3700e66872c371e365a25 (diff)
parenta526d6b7ce8c2e506dfc0a6356e9e2ce470bc3e4 (diff)
downloadtdde25-978fed58df8322d4195ae112d33a4da193deccc2.tar.gz
Merge branch 'small-fixes' into 'master'
Small fixes See merge request tdde25-2020/tdde25-2020-projekt-sg3-maps-05!18
Diffstat (limited to 'osm_parser.py')
-rw-r--r--osm_parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/osm_parser.py b/osm_parser.py
index 7145726..b3eed86 100644
--- a/osm_parser.py
+++ b/osm_parser.py
@@ -121,7 +121,8 @@ class OSMParser:
for node in el.iter(OSM_WAYNODE))
tags = {tag.get(OSM_TAG_KEY): tag.get(OSM_TAG_VALUE)
for tag in el.iter(OSM_TAG)
- if self.allow_all or tag.get(OSM_TAG_KEY) in self.way_tags}
+ if self.allow_all
+ or tag.get(OSM_TAG_KEY) in self.way_tags}
# Yield the edge id, the road and the tags
yield {