astronomer/airflow/version_check/update_checks.py
def hide_old_versions():
        """Hide Old Versions from displaying in the UI"""
        from .models import AstronomerAvailableVersion

        with create_session() as session:
            available_releases = session.query(AstronomerAvailableVersion).filter(
                AstronomerAvailableVersion.hidden_from_ui.is_(False)
            )

            ac_version = version.parse(get_ac_version())
            for rel in available_releases:
                if ac_version >= version.parse(rel.version):
                    rel.hidden_from_ui = True
Hide Old Versions from displaying in the UI
Hide Old Versions from displaying in the UI
Hide Old Versions from displaying in the UI
def hide_old_versions():
        from .models import AstronomerAvailableVersion
        with create_session() as session:
            available_releases = session.query(AstronomerAvailableVersion).filter(
                AstronomerAvailableVersion.hidden_from_ui.is_(False)
            )
            ac_version = version.parse(get_ac_version())
            for rel in available_releases:
                if ac_version >= version.parse(rel.version):
                    rel.hidden_from_ui = True
def hide_old_versions ( ) : from . models import AstronomerAvailableVersion with create_session ( ) as session : available_releases = session . query ( AstronomerAvailableVersion ) . filter ( AstronomerAvailableVersion . hidden_from_ui . is_ ( False ) ) ac_version = version . parse ( get_ac_version ( ) ) for rel in available_releases : if ac_version >= version . parse ( rel . version ) : rel . hidden_from_ui = True
Hide Old Versions from displaying in the UI
Hide Old Versions from displaying in the UI
"""Hide Old Versions from displaying in the UI"""