Skip to content

Commit

Permalink
Merge pull request #64 from go-park-mail-ru/feature/rk4
Browse files Browse the repository at this point in the history
test
  • Loading branch information
Max425 authored Dec 25, 2023
2 parents 7fc251b + 122acd0 commit feb2a25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/model/convert/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"github.com/go-park-mail-ru/2023_2_Umlaut/pkg/constants"
"github.com/go-park-mail-ru/2023_2_Umlaut/pkg/model/core"
"github.com/go-park-mail-ru/2023_2_Umlaut/pkg/model/dto"
"log"
"time"
)

Expand All @@ -13,10 +14,14 @@ func IntoCoreVkUser(vkUser dto.VkUser) core.User {
if vkUser.Sex > 0 {
gender := vkUser.Sex - 1
userGender = &gender
log.Printf("[VK] %d gender == constants.ManGender: %v", gender, gender == constants.ManGender)
log.Printf("[VK] %d gender == constants.WomanGender: %v", gender, gender == constants.WomanGender)
if gender == constants.ManGender {
preferGender = &constants.WomanGender
log.Printf("[VK] %d", *preferGender)
} else {
preferGender = &constants.ManGender
log.Printf("[VK] %d", *preferGender)
}
}

Expand Down

0 comments on commit feb2a25

Please sign in to comment.