Skip to content

Commit

Permalink
Ignore lists with missing hashes on the dashboard (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrad02 authored Aug 9, 2024
1 parent ac26ceb commit 32ee826
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion myhpi/tenca_django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 32ee826

Please sign in to comment.