Beispiel #1
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 #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