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

Unified Diff: appengine/findit/handlers/triage_analysis.py

Issue 1866883002: [Findit] A huge refactoring and some bug fixing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nit. Created 4 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: appengine/findit/handlers/triage_analysis.py
diff --git a/appengine/findit/handlers/triage_analysis.py b/appengine/findit/handlers/triage_analysis.py
index 14655d468aef42bec70ed3dce0ab5245e5bfb5e0..e25dbcb70c0a51408143e0c950bebb7f486033cc 100644
--- a/appengine/findit/handlers/triage_analysis.py
+++ b/appengine/findit/handlers/triage_analysis.py
@@ -17,7 +17,7 @@ from google.appengine.ext import ndb
from base_handler import BaseHandler
from base_handler import Permission
from model.wf_analysis import WfAnalysis
-from model import wf_analysis_result_status
+from model import result_status
from waterfall import buildbot
@@ -30,17 +30,17 @@ def _UpdateAnalysisResultStatus(
if correct:
if analysis.suspected_cls:
- analysis.result_status = wf_analysis_result_status.FOUND_CORRECT
+ analysis.result_status = result_status.FOUND_CORRECT
analysis.culprit_cls = analysis.suspected_cls
else:
- analysis.result_status = wf_analysis_result_status.NOT_FOUND_CORRECT
+ analysis.result_status = result_status.NOT_FOUND_CORRECT
analysis.culprit_cls = None
else:
analysis.culprit_cls = None
if analysis.suspected_cls:
- analysis.result_status = wf_analysis_result_status.FOUND_INCORRECT
+ analysis.result_status = result_status.FOUND_INCORRECT
else:
- analysis.result_status = wf_analysis_result_status.NOT_FOUND_INCORRECT
+ analysis.result_status = result_status.NOT_FOUND_INCORRECT
triage_record = {
'triage_timestamp': calendar.timegm(datetime.utcnow().timetuple()),
« no previous file with comments | « appengine/findit/handlers/test/triage_analysis_test.py ('k') | appengine/findit/handlers/trigger_analyses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698