mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Tighter filtering for user_daily_visits
This commit is contained in:
parent
08462620bf
commit
644aac5f73
@ -379,7 +379,11 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
WHERE timestamp = ?
|
WHERE timestamp = ?
|
||||||
) udv
|
) udv
|
||||||
ON u.user_id = udv.user_id AND u.device_id=udv.device_id
|
ON u.user_id = udv.user_id AND u.device_id=udv.device_id
|
||||||
WHERE last_seen > ? AND last_seen <= ? AND udv.timestamp IS NULL
|
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 users.appservice_id IS NULL
|
||||||
|
GROUP BY u.user_id, u.device_id
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# This means that the day has rolled over but there could still
|
# This means that the day has rolled over but there could still
|
||||||
|
Loading…
Reference in New Issue
Block a user