From dd610f797fdbf5494910435f23c3683d84af4383 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Fri, 9 Feb 2024 09:20:44 +0000 Subject: [PATCH] Fix variable typo --- gunshotmatch_cli/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunshotmatch_cli/__main__.py b/gunshotmatch_cli/__main__.py index c79a110..7f3ec27 100644 --- a/gunshotmatch_cli/__main__.py +++ b/gunshotmatch_cli/__main__.py @@ -173,7 +173,7 @@ def complete_table(ctx: click.Context, param: click.Parameter, incomplete: str) table_names = [table for table in tables if table.startswith(incomplete)] completions = [] for table in table_names: - if ' ' in table_names: + if ' ' in table: completions.append(CompletionItem('"' + table.replace(' ', "\\ ") + '"')) else: completions.append(CompletionItem(table))