From 51b4577cf72dd6e742790d504b7942610b7b2a73 Mon Sep 17 00:00:00 2001 From: John Giannelos Date: Mon, 16 Dec 2013 14:23:38 +0200 Subject: [PATCH] [fix bug 950640] Replace monitored bugzilla flag for voting automations. --- remo/remozilla/tasks.py | 2 +- remo/remozilla/tests/test_tasks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/remo/remozilla/tasks.py b/remo/remozilla/tasks.py index 21a63a818..aa2d6d058 100644 --- a/remo/remozilla/tasks.py +++ b/remo/remozilla/tasks.py @@ -99,7 +99,7 @@ def fetch_bugs(components=COMPONENTS, days=None): for flag in bdata.get('flags', []): if ((flag['status'] == '?' - and flag['name'] == 'remo-review' + and flag['name'] == 'remo-approval' and flag['requestee']['name'] == ( settings.REPS_COUNCIL_ALIAS) and waffle.switch_is_active('automated_polls'))): diff --git a/remo/remozilla/tests/test_tasks.py b/remo/remozilla/tests/test_tasks.py index e2cac9a68..3f580bdcd 100644 --- a/remo/remozilla/tests/test_tasks.py +++ b/remo/remozilla/tests/test_tasks.py @@ -71,7 +71,7 @@ def test_with_valid_data(self, switch_is_active_mock, fake_requests_obj): 'ref': '', 'name': 'reps-council@mozilla.com'}, 'status': '?', - 'name': 'remo-review'}], + 'name': 'remo-approval'}], 'resolution': 'invalid'}, {'id': 1199, 'summary': 'New summary',