check_user_zephyr_mirror_liveness: Fix query for new API.

(imported from commit f6c477a1d5f0237109be339d099c41c7db5186cc)
This commit is contained in:
Tim Abbott 2013-05-10 10:45:45 -04:00
parent 77fd5f1113
commit 0a36340216
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()
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)]