Skip to content

Commit

Permalink
Add another keyword to floor parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
flofriday committed Apr 10, 2024
1 parent 1283b23 commit 93f3881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def read_rooms() -> dict[str, tuple[str, str, str, str]]:
# The floor information is in any of the address fields but never
# the first one
floor_fields = fields[6].split(",")[1:]
keywords = ["OG", "EG", "Stock", "geschoß", "geschoss"]
keywords = ["OG", "UG", "EG", "Stock", "geschoß", "geschoss"]
floor_fields = [
field for field in floor_fields if any([kw in field for kw in keywords])
]
Expand Down

0 comments on commit 93f3881

Please sign in to comment.