def post(self): content_id = self.request.get("content-id") content = Content.get_by_id(int(content_id)) if content: content.download_count = content.download_count + 1 content.put() return
def post(self): material_id = self.request.get('material-id') material = Content.get_by_id(int(material_id)) if material: material.download_count = material.download_count + 1 material.put() return