open-webui/backend/open_webui/routers
Classic298 caf3362be8
fix: add missing group_id filter to analytics token usage query (#22167)
The get_token_usage_by_user query lacked group_id filtering, while the
companion get_message_count_by_user query already supported it. When an
admin filtered analytics by user group, message counts were correctly
scoped to the group but token usage totals included data from all users.

Add the group_id parameter and subquery filter to get_token_usage_by_user,
matching the pattern used by get_message_count_by_user and other analytics
queries, and pass group_id through from the analytics endpoint.
2026-03-08 17:11:12 -05:00
..
analytics.py fix: add missing group_id filter to analytics token usage query (#22167) 2026-03-08 17:11:12 -05:00
audio.py fix: correct Azure TTS locale extraction for SSML xml:lang (#22443) 2026-03-08 16:50:25 -05:00
auths.py fix(ui): allow empty LDAP Application DN value and password in General setting… (#21742) 2026-02-22 17:58:12 -06:00
channels.py chore: format 2026-03-01 13:34:09 -06:00
chats.py refac 2026-02-22 17:51:03 -06:00
configs.py refac 2026-02-27 16:03:43 -06:00
evaluations.py chore: format 2026-01-09 20:44:31 +04:00
files.py refac 2026-03-01 13:49:36 -06:00
folders.py chore: format 2026-03-07 20:14:32 -06:00
functions.py chore: format 2026-02-11 16:24:11 -06:00
groups.py chore: format 2026-02-11 16:24:11 -06:00
images.py refac 2026-02-22 18:55:24 -06:00
knowledge.py refac 2026-03-01 13:20:55 -06:00
memories.py refac 2026-02-11 15:55:23 -06:00
models.py refac 2026-02-25 15:15:59 -06:00
notes.py refac 2026-02-25 15:15:59 -06:00
ollama.py fix: replace bare string raises with proper exception types (#22446) 2026-03-08 16:39:09 -05:00
openai.py refac 2026-02-21 15:35:34 -06:00
pipelines.py fix: prevent pipeline filter from corrupting payload on HTTP error (#22445) 2026-03-08 16:44:35 -05:00
prompts.py refac 2026-02-25 15:15:59 -06:00
retrieval.py refac 2026-03-06 20:12:37 -06:00
scim.py fix: clamp SCIM pagination args instead of rejecting them (#21577) 2026-02-19 15:08:42 -06:00
skills.py fix: import 2026-03-06 14:10:50 -06:00
tasks.py chore: format 2026-02-11 16:24:11 -06:00
terminals.py chore: format 2026-03-02 17:04:52 -06:00
tools.py refac 2026-03-08 16:40:20 -05:00
users.py enh: access grant level perms 2026-02-23 15:49:05 -06:00
utils.py chore: format 2026-02-11 16:24:11 -06:00