def get_sidebar_projects(): toRet = [] err, asdf = data.retrieve_projects(sort_order="desc") for i in range(len(asdf)): toRet.append({"id": int(asdf[i]["project_no"]), "title": str(asdf[i]["project_name"])}) if i > 10: break return toRet
def list(): return render_template("list.html", project=data.retrieve_projects()[1], jquery='jquery' in request.args)