Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f122cbc

Browse filesBrowse files
author
Jon Wayne Parrott
authored
Add region tags
1 parent b763fe6 commit f122cbc
Copy full SHA for f122cbc

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
  • appengine/standard/taskqueue/pull-counter
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎appengine/standard/taskqueue/pull-counter/main.py

Copy file name to clipboardExpand all lines: appengine/standard/taskqueue/pull-counter/main.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ def get(self):
4040
counter_template = JINJA_ENV.get_template('counter.html')
4141
self.response.out.write(counter_template.render(template_values))
4242

43+
# [START adding_task]
4344
def post(self):
4445
key = self.request.get('key')
4546
if key:
4647
queue = taskqueue.Queue('pullq')
4748
queue.add(taskqueue.Task(payload='', method='PULL', tag=key))
4849
self.redirect('/')
50+
# [END adding_task]
4951

5052

5153
@ndb.transactional

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.