Correctly count tag categories

If multiple tags of the same category are applied to the same item,
just summing tag counts will produce the wrong results as now items
are counted multiple times.
This commit is contained in:
Eike Kettner
2021-04-11 13:57:49 +02:00
parent 132730b19c
commit 3e0914ece7
10 changed files with 79 additions and 8 deletions

View File

@ -71,6 +71,9 @@ object OCollective {
type TagCount = docspell.store.queries.TagCount
val TagCount = docspell.store.queries.TagCount
type CategoryCount = docspell.store.queries.CategoryCount
val CategoryCount = docspell.store.queries.CategoryCount
type InsightData = QCollective.InsightData
val insightData = QCollective.InsightData