

def scan(self):
    name = self.body['TableName']
    filters = {
        
    }
    scan_filters = self.body.get('ScanFilter', {
        
    })
    for (attribute_name, scan_filter) in scan_filters.items():
        comparison_operator = scan_filter['ComparisonOperator']
        comparison_values = scan_filter.get('AttributeValueList', [])
        attribute_name[attribute_name] = (comparison_operator, comparison_values)
    (items, scanned_count, last_page) = dynamodb_backend.scan(name, filters)
    if (items is None):
        er = 'com.amazonaws.dynamodb.v20111205#ResourceNotFoundException'
        return self.error(er)
    result = {
        'Count': len(items),
        'Items': [item.attrs for item in items],
        'ConsumedCapacityUnits': 1,
        'ScannedCount': scanned_count,
    }
    return dynamo_json_dump(result)

dataset/ETHPy150Open spulec/moto/moto/dynamodb/responses.py DynamoHandler.scan/VarMisuse@76/109 `filters`->`attribute_name`