mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 20:42:59 +00:00
Add files via upload
This commit is contained in:
@@ -217,9 +217,13 @@ func parseTable(f *excelize.File, sheetName, startCol, endCol string, tableNum i
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for "Aktualizace" - end of data
|
// Skip general contacts and update date line
|
||||||
if len(row) > nameCol && strings.Contains(strings.ToLower(row[nameCol]), "aktualizace") {
|
if strings.Contains(row[nameCol], "převzetí hovoru") ||
|
||||||
break
|
strings.Contains(row[nameCol], "hlavní vchod") ||
|
||||||
|
strings.Contains(row[nameCol], "brána") ||
|
||||||
|
strings.HasPrefix(row[nameCol], "Aktualizace dne") ||
|
||||||
|
strings.HasPrefix(row[nameCol], "Poslední aktualizace") {
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for special formatting rows (like "*02(xx)")
|
// Check for special formatting rows (like "*02(xx)")
|
||||||
@@ -246,11 +250,6 @@ func parseTable(f *excelize.File, sheetName, startCol, endCol string, tableNum i
|
|||||||
phone = cleanPhoneNumber(phone)
|
phone = cleanPhoneNumber(phone)
|
||||||
servicePhone = cleanPhoneNumber(servicePhone)
|
servicePhone = cleanPhoneNumber(servicePhone)
|
||||||
|
|
||||||
// Skip general contacts that don't have names
|
|
||||||
if strings.Contains(name, "převzetí hovoru") || strings.Contains(name, "hlavní vchod") || strings.Contains(name, "brána") {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
// If we have a name, start a new contact
|
// If we have a name, start a new contact
|
||||||
if name != "" && !strings.Contains(name, "(") {
|
if name != "" && !strings.Contains(name, "(") {
|
||||||
currentContact = &Contact{
|
currentContact = &Contact{
|
||||||
|
|||||||
Reference in New Issue
Block a user