From a16e4b6259e446029a4c205001fc07e6e2bb3674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Dvo=C5=99=C3=A1k?= <150935816+Dvorinka@users.noreply.github.com> Date: Fri, 23 May 2025 09:45:11 +0200 Subject: [PATCH] Add files via upload --- kontakt/contact-scrape.go | 4 ++- kontakt/index.html | 60 +++++---------------------------------- 2 files changed, 10 insertions(+), 54 deletions(-) diff --git a/kontakt/contact-scrape.go b/kontakt/contact-scrape.go index 119e293..668c9e4 100644 --- a/kontakt/contact-scrape.go +++ b/kontakt/contact-scrape.go @@ -302,7 +302,9 @@ func cleanPhoneNumber(phone string) string { func processContacts(contacts []Contact) *ContactData { var data ContactData for _, contact := range contacts { - if strings.Contains(contact.Name, "Interní") { + // Check if name contains "Interní" (case sensitive) + isInternal := strings.Contains(contact.Name, "Interní") + if isInternal { data.InternalContacts = append(data.InternalContacts, contact) } else { data.Contacts = append(data.Contacts, contact) diff --git a/kontakt/index.html b/kontakt/index.html index 51718eb..0e4f6a4 100644 --- a/kontakt/index.html +++ b/kontakt/index.html @@ -55,19 +55,6 @@ - -