mirror of https://github.com/zulip/zulip.git
check_user_zephyr_mirror_liveness: Fix query for new API.
(imported from commit f6c477a1d5f0237109be339d099c41c7db5186cc)
This commit is contained in:
parent
77fd5f1113
commit
0a36340216
|
@ -38,7 +38,7 @@ def report(state, short_msg, too_old=None):
|
|||
|
||||
now = datetime.datetime.utcnow()
|
||||
|
||||
all_users = UserActivity.objects.filter(query="/api/v1/get_messages",
|
||||
all_users = UserActivity.objects.filter(query="/api/v1/events",
|
||||
client__name="zephyr_mirror")
|
||||
new_inactive_users = [user for user in all_users if user.last_visit.replace(tzinfo=None) < \
|
||||
now - datetime.timedelta(minutes=10)]
|
||||
|
|
Loading…
Reference in New Issue