From a2973cd3051a30714a2f24f8bb8093f6f1243af4 Mon Sep 17 00:00:00 2001
From: Laurens <laurens@gfz-potsdam.de>
Date: Mon, 25 Sep 2023 16:54:17 +0200
Subject: [PATCH] Hotfix: return occupancy string instead of python object for
 overriding occupancies

---
 building/02_process/occupancy/occupancy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/building/02_process/occupancy/occupancy.py b/building/02_process/occupancy/occupancy.py
index e863b63..5e1b4f4 100644
--- a/building/02_process/occupancy/occupancy.py
+++ b/building/02_process/occupancy/occupancy.py
@@ -49,7 +49,7 @@ class OccupancyRule:
         # If any of the `overriding_occupancies` is in the list, return that one.
         for occ in occupancies:
             if occ in self.overriding_occupancies:
-                return {"occupancy": occ}
+                return {"occupancy": occ.occupancy_string}
 
         # Rule two tags; same level 1
         # If there is one unique level 0 and one unique level 1 (which implies that the
-- 
GitLab