Add files via upload

This commit is contained in:
Tomáš Dvořák
2025-05-22 09:23:59 +02:00
committed by GitHub
parent 3c41a8378c
commit 066a95c71d
+5 -1
View File
@@ -256,7 +256,11 @@ func parseTable(f *excelize.File, sheetName, startCol, endCol string, tableNum i
Table: tableNum,
}
contacts = append(contacts, *currentContact)
} else if currentContact != nil {
} else if currentContact != nil && !strings.HasPrefix(row[nameCol], "Aktualizace dne") {
// Skip general contacts that don't have names
if strings.Contains(row[nameCol], "převzetí hovoru") || strings.Contains(row[nameCol], "hlavní vchod") || strings.Contains(row[nameCol], "brána") {
continue
}
// This is additional data for the current contact
newContact := *currentContact
if position != "" {