Skip to content

Commit

Permalink
Cambios en el candidate search
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOtero committed Jun 23, 2016
1 parent 3ff32ad commit 5271302
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TinderTaller/config/tinderConfig.Json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"http_port":"localhost:8080",
"http_port":"192.168.0.13:8080",
"createIfMissing":"true",
"deleteAll":"false",
"urlSharedServer": "http://tander.herokuapp.com"
Expand Down
6 changes: 6 additions & 0 deletions TinderTaller/src/CandidateService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ vector<User> CandidateService::getUsersPreferences(User user, vector<User> candi
break;
}
}
if (!isPreference){
LOG(DEBUG) << "No es de la preferencia del usuario (CandidateService - getUsersPreferences): " << candidate.getId();
continue;
}
//Voy a recorrer los intereses del usuario
for(int iUseInt = 0; iUseInt < candidate.getPreferences().size(); iUseInt ++){
Interest candidatePreference = candidate.getPreferences()[iUseInt];
Expand All @@ -282,6 +286,8 @@ vector<User> CandidateService::getUsersPreferences(User user, vector<User> candi
if (candidatePreference.getValue()==userSex){
isPreference=true;
break;
}else{
isPreference=false;
}
}

Expand Down

0 comments on commit 5271302

Please sign in to comment.