|
|
@@ -34,6 +34,10 @@ try:
|
|
|
print("debug: Contact " + row[1])
|
|
|
|
|
|
|
|
|
+ SQLADRCur = SQLconn.cursor()
|
|
|
+ for ADRrow in SQLADRCur.execute('SELECT * FROM Addresses JOIN Details on Details.detailId = Addresses.detailId where contactId = ' + str(contactID)):
|
|
|
+ adr = vcf.add('ADR').value = vobject.vcard.Address(street=ADRrow[2], city=ADRrow[5], region=ADRrow[4], code=ADRrow[6],country=ADRrow[7])
|
|
|
+
|
|
|
## Abfragen Organisation
|
|
|
SQLORGCur = SQLconn.cursor()
|
|
|
for ORGrow in SQLORGCur.execute('SELECT * from Organizations where contactId = ' + str(contactID)):
|
|
|
@@ -43,7 +47,7 @@ try:
|
|
|
title = vcf.add('TITLE').value = str(ORGrow[4])
|
|
|
|
|
|
if ORGrow[3] is not None:
|
|
|
- role = vcf.add('ROLE').value = str(ORGrow[3])
|
|
|
+ role = vcf.add('ROLE').str = value(ORGrow[3])
|
|
|
|
|
|
# Also parameters are possible. Could be read out
|
|
|
# | columnID | column |
|