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

Unified Diff: appengine/chromium_cq_status/handlers/query.py

Issue 2111713004: Teach CQ status app to check login status of users. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Review and tests. Created 4 years, 6 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/chromium_cq_status/handlers/post.py ('k') | appengine/chromium_cq_status/handlers/recent.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/chromium_cq_status/handlers/query.py
diff --git a/appengine/chromium_cq_status/handlers/query.py b/appengine/chromium_cq_status/handlers/query.py
index dc9f06c61cafb4bdb88718d9d7a4c9c60b14c4ac..6f8a2863ff0fde83cfb3505b77c53a61b6515fc0 100644
--- a/appengine/chromium_cq_status/handlers/query.py
+++ b/appengine/chromium_cq_status/handlers/query.py
@@ -29,8 +29,7 @@ def has_end_timestamp(
return end and end < datetime.utcnow()
@utils.memcachize(cache_check=has_end_timestamp)
-def execute_query(
- key, begin, end, tags, fields, count, cursor):
+def execute_query(key, begin, end, tags, fields, count, cursor):
records = []
next_cursor = ''
if key and count > 0:
@@ -74,6 +73,7 @@ def matches_fields(fields, record):
class Query(webapp2.RequestHandler):
@utils.cross_origin_json
+ @utils.read_access
def get(self, url_tags): # pylint: disable=W0221
try:
params = parse_request(self.request, {
« no previous file with comments | « appengine/chromium_cq_status/handlers/post.py ('k') | appengine/chromium_cq_status/handlers/recent.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698