Skip to content
Snippets Groups Projects
Commit c0677929 authored by Laurens Oostwegel's avatar Laurens Oostwegel
Browse files

Hotfix: resolve error parsing tags in rule StoriesAndFloorspace

parent a2973cd3
No related branches found
No related tags found
1 merge request!7Resolve "[Hotfix]: Tag rule has an error"
Pipeline #65307 passed
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -19,11 +19,10 @@ class StoriesAndFloorspaceRule:
from math import ceil
story_options = [
self.get_story_tag(building["tags"]) for building in [tags] + relations
]
all_building_tags = [tags] + [building["tags"] for building in relations]
for story_string in story_options:
for tags in all_building_tags:
story_string = self.get_story_tag(tags)
if story_string is None or story_string == "":
continue
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment