예제 #1
0
def add_tag(tag):
  """Add or update a tag."""
  model = Tag()
  model.tag_name = tag
  model.put()
  return model
예제 #2
0
def get_all_tags():
  """Gets all tags."""
  tags = Tag.query().fetch(10000)
  return tags