This commit is contained in:
diegantobass 2025-05-08 11:14:57 +02:00
parent 3522b03652
commit 6280f848fe

View file

@ -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("-", "")