mirror of https://github.com/zulip/zulip.git
check_user_zephyr_mirror_liveness: Include older zephyr mirror API version.
(imported from commit e96f25e35709ee3ee85cc0c4522f98148cb31926)
This commit is contained in:
parent
aad13aea04
commit
50a4b194af
|
@ -38,7 +38,7 @@ def report(state, short_msg, too_old=None):
|
|||
|
||||
now = datetime.datetime.utcnow()
|
||||
|
||||
all_users = UserActivity.objects.filter(query="get_events_backend",
|
||||
all_users = UserActivity.objects.filter(query__in=["get_events_backend", "/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