Add files via upload

This commit is contained in:
Tomáš Dvořák
2025-05-23 10:36:28 +02:00
committed by GitHub
parent 3fdc02d146
commit b18ac2ebad
+2 -7
View File
@@ -243,13 +243,8 @@ func parseTable(f *excelize.File, sheetName, startCol, endCol string) []Contact
Name: strings.TrimSpace(row[nameCol]), Name: strings.TrimSpace(row[nameCol]),
Position: safeGet(row, positionCol, ""), Position: safeGet(row, positionCol, ""),
Phone: formatPhoneNumber(safeGet(row, phoneCol, "")), Phone: formatPhoneNumber(safeGet(row, phoneCol, "")),
ServicePhone: formatPhoneNumber(safeGet(row, servicePhoneCol, "")), ServicePhone: formatPhoneNumber(safeGet(row, servicePhoneCol, "")), // Full mobile number
PhoneFlap: formatPhoneFlap(safeGet(row, flapCol, "")), PhoneFlap: formatPhoneFlap(safeGet(row, flapCol, "")), // Internal extension with *
}
// Check for mobile klapka if exists
if len(row) > 4 && row[4] != "" {
contact.ServicePhone = formatPhoneNumber(row[4])
} }
contacts = append(contacts, contact) contacts = append(contacts, contact)