From 03f3756ffd93f1645bedb379b6f9c98c318fed50 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 6 Dec 2024 09:54:53 -0500 Subject: [PATCH] Remove tag count from any tag query --- src/tags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tags.rs b/src/tags.rs index db28533..fd20a84 100644 --- a/src/tags.rs +++ b/src/tags.rs @@ -379,7 +379,7 @@ impl TagDao for SqliteTagDao { .filter(tagged_photo::tag_id.ne_all(exclude_tag_ids)) .group_by(tagged_photo::photo_name) .select((tagged_photo::photo_name, count(tagged_photo::tag_id))) - .having(count_distinct(tagged_photo::tag_id).eq(tag_ids.len() as i64)) + // .having(count_distinct(tagged_photo::tag_id).eq(tag_ids.len() as i64)) .select(tagged_photo::photo_name) .get_results::(&mut self.connection) .with_context(|| format!("Unable to get Tagged photos with ids: {:?}", tag_ids))