From 96307d15f3151c920a83ba3d8125d5f25ea6d81b Mon Sep 17 00:00:00 2001 From: Lukas Radermacher <49586507+lukasrad02@users.noreply.github.com> Date: Thu, 8 Aug 2024 19:36:29 +0200 Subject: [PATCH] Ignore lists with missing hashes on the dashboard --- myhpi/tenca_django/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/myhpi/tenca_django/views.py b/myhpi/tenca_django/views.py index 8bfad31f..1f1e74d9 100644 --- a/myhpi/tenca_django/views.py +++ b/myhpi/tenca_django/views.py @@ -29,7 +29,10 @@ class TencaDashboard(LoginRequiredMixin, FormView): def get_context_data(self, **kwargs): email = self.request.user.email kwargs.setdefault( - "memberships", connection.get_owner_and_memberships(email, *alternative_emails(email)) + "memberships", + connection.get_owner_and_memberships( + email, *alternative_emails(email), ignore_missing_hashes=True + ), ) kwargs.setdefault("domain_addon", "@" + str(connection.domain)) return super().get_context_data(**kwargs)