mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-04 12:32:59 +00:00
Add files via upload
This commit is contained in:
@@ -294,8 +294,11 @@ func processContacts(contacts []Contact) *ContactData {
|
|||||||
data.InternalContacts = []Contact{}
|
data.InternalContacts = []Contact{}
|
||||||
|
|
||||||
for _, contact := range contacts {
|
for _, contact := range contacts {
|
||||||
// Check for internal contacts (either name contains "Interní" or position starts with "Interní")
|
// Case-insensitive check for internal contacts
|
||||||
if strings.Contains(contact.Name, "Interní") || strings.HasPrefix(contact.Position, "Interní") {
|
nameContains := strings.Contains(strings.ToLower(contact.Name), "interní")
|
||||||
|
positionContains := strings.HasPrefix(strings.ToLower(contact.Position), "interní")
|
||||||
|
|
||||||
|
if nameContains || positionContains {
|
||||||
contact.Internal = true
|
contact.Internal = true
|
||||||
data.InternalContacts = append(data.InternalContacts, contact)
|
data.InternalContacts = append(data.InternalContacts, contact)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user