]> piware.de Git - bin.git/commitdiff
vcard2gnokii: fix phone numbers
authormartin@piware.de <>
Thu, 1 Jan 2009 12:47:23 +0000 (13:47 +0100)
committermartin@piware.de <>
Thu, 1 Jan 2009 12:47:23 +0000 (13:47 +0100)
vcard2gnokii

index 4b7ef99378d02e7f4daa5df222ee7a7498f41e1c..f3cef82ccf258d50f1a8d1b111b44c636278d083 100755 (executable)
@@ -20,11 +20,11 @@ def output_info(info, pos):
        kf = k.split(';')
        type = 0
        if len(kf) > 1:
-           if kf[1].startswith('TYPE=HOME'):
+           if 'TYPE=HOME' in k:
                type = 2
-           elif kf[1].startswith('TYPE=CELL'):
+           elif 'TYPE=CELL' in k:
                type = 3
-           elif kf[1].startswith('TYPE=WORK'):
+           elif 'TYPE=WORK' in k:
                type = 6
 
        if kf[0] == 'ADR':