recognize: filter user in unassigned (fix #773)
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/783/head
parent
a6d7ddecdb
commit
b513650892
|
@ -94,7 +94,10 @@ class RecognizeBackend extends Backend
|
|||
// Join with cluster
|
||||
$clusterQuery = null;
|
||||
if ('NULL' === $faceName) {
|
||||
$clusterQuery = $query->expr()->eq('rfd.cluster_id', $query->expr()->literal(-1));
|
||||
$clusterQuery = $query->expr()->andX(
|
||||
$query->expr()->eq('rfd.user_id', $query->createNamedParameter(Util::getUID())),
|
||||
$query->expr()->eq('rfd.cluster_id', $query->expr()->literal(-1))
|
||||
);
|
||||
} else {
|
||||
$nameField = is_numeric($faceName) ? 'rfc.id' : 'rfc.title';
|
||||
$query->innerJoin('m', 'recognize_face_clusters', 'rfc', $query->expr()->andX(
|
||||
|
|
Loading…
Reference in New Issue