Fix problem with persons for `Berufsbildner`

This commit is contained in:
Daniel Egger 2024-07-26 13:05:38 +02:00
parent ca37f74e45
commit eef166575f
2 changed files with 8 additions and 3 deletions

View File

@ -13,7 +13,12 @@ const props = defineProps<{
participantUserIds: string[];
}>();
log.debug("AgentAssignmentDetail created", props.courseSlug, props.agentRole);
log.debug(
"AgentAssignmentDetail created",
props.courseSlug,
props.agentRole,
props.participantUserIds
);
const courseSession = useCurrentCourseSession();
const { loading } = useExpertCockpitPageData(

View File

@ -209,10 +209,10 @@ def _create_person_list_with_roles(user):
if participant_user.id not in result_persons:
person_data = create_user_dict(participant_user)
person_data["course_sessions"] = [course_session_entry]
result_persons[participant_user] = person_data
result_persons[participant_user.id] = person_data
else:
# user is already in result_persons
result_persons[participant_user]["course_sessions"].append(
result_persons[participant_user.id]["course_sessions"].append(
course_session_entry
)