def list_mirrors(p_name=None, p_version=None, p_arch=None): """ Displays the page listing all mirrors. """ version_id = None arch_id = None if p_name and p_version: version = mmlib.get_version_by_name_version(SESSION, p_name, p_version) version_id = version.id if p_arch: arch = mmlib.get_arch_by_name(SESSION, p_arch) arch_id = arch.id mirrors = mmlib.get_mirrors( SESSION, private=False, site_private=False, admin_active=True, user_active=True, site_admin_active=True, site_user_active=True, # last_checked_in=True, # last_crawled=True, up2date=True, host_category_url_private=False, version_id=version_id, arch_id=arch_id, ) return flask.render_template( 'mirrors.html', mirrors=mirrors, )
def list_mirrors(p_name=None, p_version=None, p_arch=None): """ Displays the page listing all mirrors. """ version_id = None arch_id = None if p_name and p_version: version = mmlib.get_version_by_name_version( SESSION, p_name, p_version) version_id = version.id if p_arch: arch = mmlib.get_arch_by_name(SESSION, p_arch) arch_id = arch.id mirrors = mmlib.get_mirrors( SESSION, private=False, site_private=False, admin_active=True, user_active=True, site_admin_active=True, site_user_active=True, # last_checked_in=True, # last_crawled=True, up2date=True, host_category_url_private=False, version_id=version_id, arch_id=arch_id, ) return flask.render_template( 'mirrors.html', mirrors=mirrors, )