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

Unified Diff: appengine/findit/handlers/list_analyses.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
« no previous file with comments | « appengine/findit/handlers/handlers_util.py ('k') | appengine/findit/handlers/monitor_alerts.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/list_analyses.py
diff --git a/appengine/findit/handlers/list_analyses.py b/appengine/findit/handlers/list_analyses.py
index 61cfa4240145e7935eecff061ff61076be36d0ba..5282b271fe34629e34365fdd7f545e10e73a076f 100644
--- a/appengine/findit/handlers/list_analyses.py
+++ b/appengine/findit/handlers/list_analyses.py
@@ -8,7 +8,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
_DEFAULT_DISPLAY_COUNT = 500
@@ -38,13 +38,13 @@ class ListAnalyses(BaseHandler):
analysis_query = WfAnalysis.query(WfAnalysis.result_status == status_code)
elif self.request.get('triage') == '1':
analysis_query = WfAnalysis.query(ndb.AND(
- WfAnalysis.result_status > wf_analysis_result_status.FOUND_CORRECT,
+ WfAnalysis.result_status > result_status.FOUND_CORRECT,
WfAnalysis.result_status <
- wf_analysis_result_status.NOT_FOUND_CORRECT))
+ result_status.NOT_FOUND_CORRECT))
else:
analysis_query = WfAnalysis.query(ndb.AND(
- WfAnalysis.result_status >= wf_analysis_result_status.FOUND_CORRECT,
- WfAnalysis.result_status < wf_analysis_result_status.FOUND_UNTRIAGED))
+ WfAnalysis.result_status >= result_status.FOUND_CORRECT,
+ WfAnalysis.result_status < result_status.FOUND_UNTRIAGED))
if self.request.get('count'):
count = int(self.request.get('count'))
« no previous file with comments | « appengine/findit/handlers/handlers_util.py ('k') | appengine/findit/handlers/monitor_alerts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698