Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from common.base_handler import BaseHandler | |
| 6 from common.base_handler import Permission | |
| 7 from model.flake.master_flake_analysis import MasterFlakeAnalysis | |
| 8 | |
| 9 | |
| 10 class FlakeDashboard(BaseHandler): | |
| 11 PERMISSION_LEVEL = Permission.CORP_USER | |
| 12 | |
| 13 def HandleGet(self): | |
| 14 # Get input parameters. | |
|
lijeffrey
2016/07/29 00:22:56
what's this Get input parameters about? is this su
caiw
2016/07/29 23:20:51
oops this was all left over from a copy paste
| |
| 15 # pylint: disable=W0612 | |
| 16 | |
| 17 master_flake_analyses = MasterFlakeAnalysis.query() | |
| 18 data = {} | |
|
lijeffrey
2016/07/29 00:22:55
nit: you can make this a 1 liner
data = {
'ma
caiw
2016/07/29 23:20:51
Done.
| |
| 19 data['master_flake_analyses'] = master_flake_analyses | |
| 20 | |
| 21 return { | |
| 22 'template': 'flake/dashboard.html', | |
| 23 'data': data | |
| 24 } | |
| OLD | NEW |