Fixes duplicated results

This commit is contained in:
Vitor Pamplona
2025-12-30 11:42:57 -05:00
parent 258c4e0111
commit 2a8e7cbe94
2 changed files with 10 additions and 8 deletions
@@ -466,7 +466,7 @@ class EventIndexesModule(
buildString {
// always do tags if there are any
if (nonDTags.isNotEmpty()) {
append("SELECT event_tags.event_header_row_id as row_id FROM event_tags ")
append("SELECT DISTINCT(event_tags.event_header_row_id) as row_id FROM event_tags ")
// it's quite rare to have 2 tags in the filter, but possible
nonDTags.keys.forEachIndexed { index, tagName ->