Skip to content

Commit

Permalink
People: Fix vcard export.
Browse files Browse the repository at this point in the history
TYPE: Bugfix
  • Loading branch information
msom committed Jul 8, 2024
1 parent c146d45 commit 31d2720
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/onegov/people/models/person.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ def vcard_object(
if 'organisation' not in exclude and self.organisation:
line = result.add('org')
line.value = [
'; '.join([self.organisation, self.sub_organisation])]
'; '.join(
o for o in (self.organisation, self.sub_organisation) if o
)
]
line.charset_param = 'utf-8'

if 'website' not in exclude and self.website:
Expand Down

0 comments on commit 31d2720

Please sign in to comment.