Skip to content
Snippets Groups Projects
Verified Commit cc67c2b2 authored by David Beniamine's avatar David Beniamine
Browse files

Fix ORG field

parent 2fe260a4
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,9 @@ def getCard(first, last, data):
card = vobject.vCard()
card.add('n').value = vobject.vcard.Name(family=last, given=first)
card.add('fn').value = f'{first} {last}'
objectValues = ['org', 'geo']
objectValues = ['org']
for k, t, v in data:
#value = v if k.lower() not in objectValues else [v]
#print(value)
v = v if k.lower() not in objectValues else [v]
card.add(k).value = v
if t:
setattr(getattr(card, k), 'type_param', t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment