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),
    }
Example #2
0
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),
    }
Example #3
0
def index():
    test_packages = package_service.get_latest_packages()
    return {'packages': test_packages}
Example #4
0
def package_details(package_name: str):
    test_packages = package_service.get_latest_packages()
    return {'package': package_name}
Example #5
0
def index():
    test_packages = package_service.get_latest_packages()
    return flask.render_template('home/index.html', packages=test_packages)
Example #6
0
def index():
    return {"packages": package_service.get_latest_packages()}
Example #7
0
def index():
    test_packages = get_latest_packages()
    return {"packages": test_packages}