Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
thomlamb committed Feb 17, 2025
1 parent 6d853d6 commit d996937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/imio/smartweb/core/contents/sections/contact/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def get_number_of_contacts(self):
"""
Returns the number of related contacts.
"""
related_contacts = self.context.related_contacts # Assurez-vous que 'related_contacts' est une liste
related_contacts = (
self.context.related_contacts
) # Assurez-vous que 'related_contacts' est une liste
if related_contacts:
return len(related_contacts)
return 0
Expand Down

0 comments on commit d996937

Please sign in to comment.