check_user_zephyr_mirror_liveness: Include older zephyr mirror API version.

(imported from commit e96f25e35709ee3ee85cc0c4522f98148cb31926)
This commit is contained in:
Tim Abbott 2013-10-08 08:24:40 -04:00 committed by Steve Howell
parent aad13aea04
commit 50a4b194af
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def report(state, short_msg, too_old=None):
now = datetime.datetime.utcnow() 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") client__name="zephyr_mirror")
new_inactive_users = [user for user in all_users if user.last_visit.replace(tzinfo=None) < \ new_inactive_users = [user for user in all_users if user.last_visit.replace(tzinfo=None) < \
now - datetime.timedelta(minutes=10)] now - datetime.timedelta(minutes=10)]