Пример #1
0
def add(restaurant_id, cert_type,
        status_from, status_to, comment=None):
    CertificationProcessingRecord.add(
        current_user.id,
        restaurant_id,
        cert_type,
        status_from,
        status_to,
        comment)
Пример #2
0
def mget_latest_record(rst_ids):
    results = []
    index = 0
    MAX_SIZE = 100
    while True:
        partial_ids = rst_ids[index * MAX_SIZE:(index + 1) * MAX_SIZE]
        results.extend(
            CertificationProcessingRecord.mget_latest_record(partial_ids))
        if len(partial_ids) < MAX_SIZE:
            break
        index += 1

    return results
Пример #3
0
def mget_latest_record(rst_ids):
    results = []
    index = 0
    MAX_SIZE = 100
    while True:
        partial_ids = rst_ids[index*MAX_SIZE: (index+1)*MAX_SIZE]
        results.extend(
            CertificationProcessingRecord.mget_latest_record(partial_ids))
        if len(partial_ids) < MAX_SIZE:
            break
        index += 1

    return results
Пример #4
0
def add(restaurant_id, cert_type, status_from, status_to, comment=None):
    CertificationProcessingRecord.add(current_user.id, restaurant_id,
                                      cert_type, status_from, status_to,
                                      comment)
Пример #5
0
def get_processing_records(restaurant_id):
    return CertificationProcessingRecord.get_by_restaurant_id(restaurant_id)
Пример #6
0
def get_latest_record(restaurant_id):
    return CertificationProcessingRecord.get_latest_record(restaurant_id)
Пример #7
0
def get_processing_records(restaurant_id):
    return CertificationProcessingRecord.get_by_restaurant_id(
        restaurant_id)
Пример #8
0
def get_latest_record(restaurant_id):
    return CertificationProcessingRecord.get_latest_record(restaurant_id)