Lines Matching refs:bot_id
55 return "%s-%s" % (status.active_patch_id, status.bot_id)
60 def _fetch_statuses(self, queue, bot_id): argument
63 if bot_id:
64 statuses.filter("bot_id =", bot_id)
67 def _fetch_last_message_matching(self, queue, bot_id, message): argument
70 if bot_id:
71 statuses.filter("bot_id =", bot_id)
75 def _fetch_trailing_days_pass_count(self, queue, bot_id, days): argument
80 if bot_id:
81 statuses.filter("bot_id =", bot_id)
85 def _page_title(self, queue, bot_id): argument
87 if bot_id:
88 title += " from \"%s\"" % (bot_id)
91 def get(self, queue_name, bot_id=None): argument
98 statuses = self._fetch_statuses(queue, bot_id)
100 "page_title": self._page_title(queue, bot_id),
103 "bot_id": bot_id,
104 "last_pass": self._fetch_last_message_matching(queue, bot_id, "Pass"),
105 "last_boot": self._fetch_last_message_matching(queue, bot_id, "Starting Queue"),
106 "trailing_month_pass_count": self._fetch_trailing_days_pass_count(queue, bot_id, 30),
107 "trailing_week_pass_count": self._fetch_trailing_days_pass_count(queue, bot_id, 7),