import persistence
import connection


@connection.connection_handler
def get_card_status(status_id):
    """
    Find the first status matching the given id
    :param status_id:
    :return: str
    """
    statuses = persistence.get_statuses()
    return next((status['title'] for status in statuses if status['id'] ==
        str(status_id)), 'Unknown')

b292d678ab7039fa9b3fc8c76b26591c462521d6
<mask token>

<mask token>


@connection.connection_handler
def get_card_status(status_id):
    """
    Find the first status matching the given id
    :param status_id:
    :return: str
    """
    statuses = persistence.get_statuses()
    return next((status['title'] for status in statuses if status['id'] ==
        str(status_id)), 'Unknown')

import persistence
import connection


@connection.connection_handler
def get_card_status(status_id):
    """
    Find the first status matching the given id
    :param status_id:
    :return: str
    """
    statuses = persistence.get_statuses()
    return next((status['title'] for status in statuses if status['id'] ==
        str(status_id)), 'Unknown')
