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
No related branches found
No related tags found
1 merge request!6Resolve "[Hotfix]: Overriding occupancy does not return string but Occupancy object"
Pipeline #65304 passed
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
......@@ -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
......
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