Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
OpenBuildingMap
rabotnik-obm
Commits
01df5344
Commit
01df5344
authored
Oct 19, 2021
by
Marius Kriegerowski
Browse files
catch empty results
parent
212b25cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
MANIFEST.in
View file @
01df5344
include rules/gem_occupancy/data/*.csv
include
rabotnikobm/
rules/gem_occupancy/data/*.csv
include LICENSE
rabotnikobm/rules/gem_occupancy/get_building_occupancy.py
View file @
01df5344
...
...
@@ -130,6 +130,10 @@ class GetBuildingOccupancy(Rule):
f
"SELECT tags FROM osm_building_relations WHERE osm_id=
{
building_id
}
AND index=0"
)
logger
.
debug
(
f
"working on tags:
{
tags
}
"
)
if
not
tags
:
return
# Mapping to GEM taxonomy strings
occupancies
=
[]
for
mapper
in
self
.
mappers
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment