Exemple #1
0
def list_active_customers():
    """
    :return:
    :rtype:
    """
    query = Customer.select().where(Customer.status == True).count()
    return query
Exemple #2
0
def display_all_customers():
    """

    :return:
    """
    customer_query = Customer.select()
    LOGGER.info('Displaying all the customers: ')
    customer_list = [(customer.customer_last_name + ',' +
                      customer.customer_name) for customer in customer_query]
    return customer_list