Skip to content

Commit f122cbc

Browse files
author
Jon Wayne Parrott
authored
Add region tags
1 parent b763fe6 commit f122cbc

File tree

1 file changed

+2
-0
lines changed
  • appengine/standard/taskqueue/pull-counter

1 file changed

+2
-0
lines changed

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

Lines 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)