Fix error loading arrangements
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 5m42s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 25m59s
Add copyright notice / copyright_notice (pull_request) Successful in 1m45s
Check usage of free licenses / check-licenses (pull_request) Successful in 3m24s

This commit is contained in:
Manuel Bustillo 2025-01-22 20:35:02 +01:00
parent f550b8d92c
commit d4c945d467

View File

@ -59,7 +59,7 @@ class AffinityGroupsHierarchy < Array
private
def load_discomforts
@load_discomforts ||= GroupAffinity.pluck(:group_a_id, :group_b_id,
@discomforts ||= GroupAffinity.pluck(:group_a_id, :group_b_id,
:discomfort).each_with_object({}) do |(id_a, id_b, discomfort), acc|
acc[uuid_to_int(id_a) + uuid_to_int(id_b)] = discomfort
end