diff --git a/indexdigest/linters/linter_0002_not_used_indices.py b/indexdigest/linters/linter_0002_not_used_indices.py index aae0ea62..a3e24522 100644 --- a/indexdigest/linters/linter_0002_not_used_indices.py +++ b/indexdigest/linters/linter_0002_not_used_indices.py @@ -26,10 +26,10 @@ def check_not_used_indices(database, queries): # analyze all tables used by the above queries # print(used_indices) - for table_name in used_indices.keys(): + for table_name, table_indices in used_indices.items(): for index in database.get_table_indices(table_name): - if index.name not in used_indices[table_name]: + if index.name not in table_indices: yield LinterEntry(linter_type='not_used_indices', table_name=table_name, message='"{}" index was not used by provided queries'. format(index.name), diff --git a/setup.py b/setup.py index fe58a8c2..87bf9fd1 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ 'dev': [ 'coverage==5.5', 'coveralls==3.1.0', - 'pylint==2.8.3', + 'pylint==2.9.3', 'pytest==6.2.4', 'pytest-cov==2.12.1', 'twine==3.4.1',