@records.get(permission='get_records')
@records.get(accept='application/vnd.geo+json', renderer='geojson',
             permission='get_records')
def get_records(request):
    """Retrieves all model records."""
    model_id = request.matchdict['model_id']
    try:
        request.db.get_model_definition(model_id)
    except ModelNotFound:
        request.errors.add('path', model_id, "model not found")
        request.errors.status = "404 Not Found"
        return
    # Return array of records
    if request.permissions not in "read_all_records":
        results = request.db.get_records_with_authors(model_id)
        results = [r['record'] for r in results
                   if set(request.principals).intersection(r['authors'])]
    else:
        results = request.db.get_records(model_id)
    return {'records': results}
dataset/ETHPy150Open spiral-project/daybed/daybed/views/records.py/get_records/swapped operands of `not in`