From 93f388195c2b5dcb56b9fc0675ef0a459aca909a Mon Sep 17 00:00:00 2001 From: flofriday Date: Wed, 10 Apr 2024 12:08:16 +0200 Subject: [PATCH] Add another keyword to floor parsing --- app/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/format.py b/app/format.py index f1a0a65..929af30 100644 --- a/app/format.py +++ b/app/format.py @@ -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]) ]