def get_all_organizations(ending):
"""List all organizations with links to their statuses."""
start = int(request.query.get("offset", 0))
count = min(int(request.query.get("limit", DEFAULT_PAGINATION_COUNT)), MAX_PAGINATION_COUNT)
if ending == "json":
return api.get_organizations(start, count)
return template("organizations.html", start=start, count=count)
评论列表
文章目录