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

Hotfix: return occupancy string instead of python object for overriding occupancies

parent 3f9e53a0
1 merge request!6Resolve "[Hotfix]: Overriding occupancy does not return string but Occupancy object"
Pipeline #65304 passed
...@@ -49,7 +49,7 @@ class OccupancyRule: ...@@ -49,7 +49,7 @@ class OccupancyRule:
# If any of the `overriding_occupancies` is in the list, return that one. # If any of the `overriding_occupancies` is in the list, return that one.
for occ in occupancies: for occ in occupancies:
if occ in self.overriding_occupancies: if occ in self.overriding_occupancies:
return {"occupancy": occ} return {"occupancy": occ.occupancy_string}
# Rule two tags; same level 1 # Rule two tags; same level 1
# If there is one unique level 0 and one unique level 1 (which implies that the # If there is one unique level 0 and one unique level 1 (which implies that the
......
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