Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Side by Side Diff: appengine/findit/handlers/crash/fracas_result_feedback.py

Issue 2480593002: [Predator] Move time_util from common/ to lib/, split code review related part to code_review_util (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 from datetime import datetime 5 from datetime import datetime
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 import constants 10 from common import constants
11 from common import time_util
12 from common.base_handler import BaseHandler 11 from common.base_handler import BaseHandler
13 from common.base_handler import Permission 12 from common.base_handler import Permission
13 from lib import time_util
14 14
15 15
16 def _GetTriageHistory(analysis): 16 def _GetTriageHistory(analysis):
17 if (not users.is_current_user_admin() or 17 if (not users.is_current_user_admin() or
18 not analysis.completed or 18 not analysis.completed or
19 not analysis.triage_history): 19 not analysis.triage_history):
20 return None 20 return None
21 21
22 triage_history = [] 22 triage_history = []
23 for triage_record in analysis.triage_history: 23 for triage_record in analysis.triage_history:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 'suspected_components': analysis.suspected_components_triage_status, 73 'suspected_components': analysis.suspected_components_triage_status,
74 }, 74 },
75 'note': analysis.note, 75 'note': analysis.note,
76 'key': analysis.key.urlsafe(), 76 'key': analysis.key.urlsafe(),
77 } 77 }
78 78
79 return { 79 return {
80 'template': 'crash/fracas_result_feedback.html', 80 'template': 'crash/fracas_result_feedback.html',
81 'data': data, 81 'data': data,
82 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698