Skip to content

fix: reset tag and actor scene counts when they reach zero#2231

Open
tankxbvr wants to merge 1 commit into
xbapps:masterfrom
tankxbvr:fix/tag-actor-counts
Open

fix: reset tag and actor scene counts when they reach zero#2231
tankxbvr wants to merge 1 commit into
xbapps:masterfrom
tankxbvr:fix/tag-actor-counts

Conversation

@tankxbvr

Copy link
Copy Markdown

CountTags/CountActorTags recompute cached counts with inner joins, so a tag or actor whose linked scenes all go away produces no result row and its stale count/avail_count is never reset — it sticks at the last non-zero value. Switching to left joins recomputes every tag/actor, so counts correctly fall to zero.

@tankxbvr
tankxbvr force-pushed the fix/tag-actor-counts branch from d3be26e to 8b4d6c6 Compare July 18, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant