From 64218fe9d8aaca6e1932a565a2a284bbbbb0d4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Wed, 8 May 2024 18:11:41 +0200 Subject: [PATCH] [fs2zammad] fix dict access synthax in user lookup --- fs2zammad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs2zammad b/fs2zammad index 3861ded..15be118 100755 --- a/fs2zammad +++ b/fs2zammad @@ -92,7 +92,7 @@ def maybe_create_zammad_user(userdata, zammad_session, attr="login", default=Non # The use probably exist already... result = list(zammad.user.search(lowercase_email)) if len(result) >= 1: - user = next(u for u in result if u.email == lowercase_email) + user = next(u for u in result if u['email'] == lowercase_email) USERMAP[lowercase_email] = user else: print(f"Could not create/fetch user {lowercase_email}")