Skip to content
Snippets Groups Projects
Commit de2f162c authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Fix issue with schedule and Python >= 3.10

parent 9db003b5
No related branches found
No related tags found
1 merge request!252Various fixes
......@@ -411,7 +411,7 @@ class Schedule:
self.set_y_location(gid, self.get_y_location(gid) + 1)
self.set_y_location(graph_id, new_y)
used_locations = {*self._y_locations.values()}
possible_locations = set(range(max(used_locations) + 1))
possible_locations = set(range(round(max(used_locations)) + 1))
if not possible_locations - used_locations:
return
remapping = {}
......
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