Skip to content

Commit

Permalink
fix: simplify IN statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Jan 26, 2024
1 parent d2b2bc4 commit 1304824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroquery/simbad/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ def list_columns(self, *tables: str, keyword=None, get_adql=False):
if len(tables) == 1:
query += f" AND table_name = '{tables[0]}'"
elif len(tables) > 1:
query += f" AND table_name IN ({str(tables)[1:-1]})"
query += f" AND table_name IN {tables}"
# add the keyword condition
if keyword is not None:
condition = f"LIKE LOWERCASE('%{_adql_parameter(keyword)}%')"
Expand Down

0 comments on commit 1304824

Please sign in to comment.