do not track infra team

The infra team is not moving its zuul settings, so there is no point
in tracking it.

Change-Id: I626c91a630eda36137320b52c26e5937160006e4
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-05 13:03:22 -04:00
parent fd54f1d2c4
commit 1ab5f2696b
1 changed files with 6 additions and 2 deletions

View File

@ -344,9 +344,13 @@ class PatchesCount(lister.Lister):
if c.get('subject') == self._import_subject
)
# We aren't going to migrate the settings for the infra team.
interesting_teams = gov_dat.get_teams()
interesting_teams.remove('Infrastructure')
count_init = {
team: 0
for team in gov_dat.get_teams()
for team in interesting_teams
}
team_counts = collections.Counter(count_init)
open_counts = collections.Counter(count_init)
@ -383,7 +387,7 @@ class PatchesCount(lister.Lister):
data = [
(team, open_counts[team], team_counts[team], get_done_value(team),
assignments.get(team, ''))
for team in sorted(gov_dat.get_teams(),
for team in sorted(interesting_teams,
key=lambda x: x.lower())
]