wrap up
This commit is contained in:
parent
3522b03652
commit
6280f848fe
1 changed files with 2 additions and 1 deletions
|
|
@ -44,9 +44,10 @@ for line in input_file:
|
||||||
contact.custom.pop("PHOTO", None)
|
contact.custom.pop("PHOTO", None)
|
||||||
|
|
||||||
# reformat phone numbers to international
|
# reformat phone numbers to international
|
||||||
# TODO : distinguish phone numbers in final vcard (hint : "type" ?!)
|
|
||||||
clean_tel = []
|
clean_tel = []
|
||||||
for number in contact.tel:
|
for number in contact.tel:
|
||||||
|
if number["type"] != []:
|
||||||
|
print(number["type"])
|
||||||
try:
|
try:
|
||||||
number = number["value"]
|
number = number["value"]
|
||||||
number = number.replace("-", "")
|
number = number.replace("-", "")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue