| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 | 6 |
| 7 from google.appengine.api import users | 7 from google.appengine.api import users |
| 8 from google.appengine.ext import ndb | 8 from google.appengine.ext import ndb |
| 9 | 9 |
| 10 from common.base_handler import BaseHandler | 10 from common.base_handler import BaseHandler |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 if analysis.status != analysis_status.PENDING: | 224 if analysis.status != analysis_status.PENDING: |
| 225 data['duration'] = time_util.FormatDuration( | 225 data['duration'] = time_util.FormatDuration( |
| 226 analysis.start_time, | 226 analysis.start_time, |
| 227 analysis.end_time or time_util.GetUTCNow()) | 227 analysis.end_time or time_util.GetUTCNow()) |
| 228 | 228 |
| 229 data['pass_rates'] = _GetCoordinatesData(analysis) | 229 data['pass_rates'] = _GetCoordinatesData(analysis) |
| 230 | 230 |
| 231 return { | 231 return { |
| 232 'template': 'flake/result.html', | 232 'template': 'flake/result.html', |
| 233 'data': data | 233 'data': data |
| 234 } | 234 } |
| OLD | NEW |