Exemplo n.º 1
0
def find(filters=[], order=[], offset=0, limit=None):
    entities = Datastore.find(KIND,
                              filters=filters,
                              order=order,
                              offset=offset,
                              limit=limit)
    details = list(map(lambda e: Datastore.entity_to_dict(e), entities))
    return details
Exemplo n.º 2
0
def find(filters=[], order=[], offset=0, limit=None):
    # persons = []
    # age_filters = list(filter(lambda f: f['key'] == 'age', filters))
    # if len(age_filters) > 0:
    #     age_filters[0].split(',')

    entities = Datastore.find(KIND,
                              filters=filters,
                              order=order,
                              offset=offset,
                              limit=limit)
    persons = list(map(lambda e: Datastore.entity_to_dict(e), entities))
    return persons