def index(): return { 'releases': package_service.get_latest_packages(), 'package_count': package_service.get_latest_packages(), 'release_count': package_service.get_latest_packages(), 'user_count': 11, 'user_id': cookie_auth.get_user_id_via_auth_cookie(flask.request), }
def index(): vm = IndexViewModel() if not vm.user: return flask.redirect('/account/login') test_packages = package_service.get_latest_packages() return { 'gis': test_packages, 'user_id': cookie_auth.get_user_id_via_auth_cookie(flask.request), }
def index(): test_packages = package_service.get_latest_packages() return {'packages': test_packages}
def package_details(package_name: str): test_packages = package_service.get_latest_packages() return {'package': package_name}
def index(): test_packages = package_service.get_latest_packages() return flask.render_template('home/index.html', packages=test_packages)
def index(): return {"packages": package_service.get_latest_packages()}
def index(): test_packages = get_latest_packages() return {"packages": test_packages}