Merge pull request #309 from JazzCore/cpp_fix
Fix FilterAndSortCandidates behavior
This commit is contained in:
commit
eb7089794e
@ -65,16 +65,7 @@ boost::python::list FilterAndSortCandidates(
|
||||
pylist filtered_candidates;
|
||||
|
||||
if ( query.empty() ) {
|
||||
if ( candidate_property.empty() )
|
||||
return candidates;
|
||||
|
||||
int num_candidates = len( candidates );
|
||||
|
||||
for ( int i = 0; i < num_candidates; ++i ) {
|
||||
filtered_candidates.append( candidates[ i ][ candidate_property ] );
|
||||
}
|
||||
|
||||
return filtered_candidates;
|
||||
}
|
||||
|
||||
std::vector< const Candidate * > repository_candidates =
|
||||
|
Loading…
Reference in New Issue
Block a user