Beispiel #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)
Beispiel #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
Beispiel #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
Beispiel #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)
Beispiel #5
0
def get_processing_records(restaurant_id):
    return CertificationProcessingRecord.get_by_restaurant_id(restaurant_id)
Beispiel #6
0
def get_latest_record(restaurant_id):
    return CertificationProcessingRecord.get_latest_record(restaurant_id)
Beispiel #7
0
def get_processing_records(restaurant_id):
    return CertificationProcessingRecord.get_by_restaurant_id(
        restaurant_id)
Beispiel #8
0
def get_latest_record(restaurant_id):
    return CertificationProcessingRecord.get_latest_record(restaurant_id)