hyperion/models/bike.py
def get_most_recent_bike() -> Optional['Bike']:
        """
        Gets the most recently cached bike from the database.
        :return: The bike that was cached most recently.
        """
        try:
            return Bike.select().order_by(Bike.cached_date.desc()).get()
        except pw.DoesNotExist:
            return None
def get_most_recent_bike() -> Optional['Bike']:
        """
        Gets the most recently cached bike from the database.
        :return: The bike that was cached most recently.
        """
        try:
            return Bike.select().order_by(Bike.cached_date.desc()).get()
        except pw.DoesNotExist:
            return None
Gets the most recently cached bike from the database.
        :return: The bike that was cached most recently.