Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
filter out unwanted user_agents
Browse files Browse the repository at this point in the history
  • Loading branch information
neilisfragile committed Aug 16, 2023
1 parent 8c3bcea commit 6fabc26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion synapse/storage/databases/main/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,10 @@ def _generate_user_daily_visits(txn: LoggingTransaction) -> None:
ON u.user_id = udv.user_id AND u.device_id=udv.device_id
INNER JOIN users ON users.name=u.user_id
WHERE ? <= last_seen AND last_seen < ?
AND udv.timestamp IS NULL AND users.is_guest=0
AND udv.timestamp IS NULL
AND u.user_agent !='sync-v3-proxy-'
AND u.user_agent !='matrix-rust-sdk'
AND users.is_guest=0
AND users.appservice_id IS NULL
GROUP BY u.user_id, u.device_id
"""
Expand Down

0 comments on commit 6fabc26

Please sign in to comment.