Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions indexdigest/linters/linter_0002_not_used_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down