From 4d9ab7f40ea54ae6a95ced65acd4393e5777c688 Mon Sep 17 00:00:00 2001
From: Andreas Hubel <andi@saerdnaer.de>
Date: Wed, 25 Dec 2024 19:45:04 +0100
Subject: [PATCH] fix(import): disable speaker hail mary attempt

fixes #679
---
 src/core/models/schedules.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/core/models/schedules.py b/src/core/models/schedules.py
index 6ef85f09b..ad3ef19f8 100644
--- a/src/core/models/schedules.py
+++ b/src/core/models/schedules.py
@@ -165,9 +165,9 @@ class ScheduleSource(models.Model):
             raise ValueError('Multiple candidate speakers found: ' + '; '.join(str(x.pk) for x in candidates))
 
         # hail mary attempt: see if we have an imported speaker with the same name
-        candidates = self.conference.users.select_related('user').filter(user__user_type=PlatformUser.Type.SPEAKER, user__display_name=name).all()
-        if len(candidates) == 1:
-            return candidates[0], False
+        # candidates = self.conference.users.select_related('user').filter(user__user_type=PlatformUser.Type.SPEAKER, user__display_name=name).all()
+        # if len(candidates) == 1:
+        #    return candidates[0].user, False
 
         # the expected case: nothing found, create a new one
         name_split = name.split(' ')
-- 
GitLab