Skip to content

Commit

Permalink
Merge branch 'master' into make-connection-thread-local
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrabel authored Nov 3, 2023
2 parents db187bd + 21e4804 commit dfa7fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rope/contrib/autoimport/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def create_table(cls, connection):

search_by_name_like = objects.where("name LIKE (?)")

search_by_name = objects.where("name IS (?)")
delete_by_module_name = objects.where("module = ?").delete_from()


Expand Down
2 changes: 1 addition & 1 deletion rope/contrib/autoimport/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def _search_module(
def get_modules(self, name) -> List[str]:
"""Get the list of modules that have global `name`."""
results = self._execute(
models.Name.search_by_name_like.select("module", "source"), (name,)
models.Name.search_by_name.select("module", "source"), (name,)
).fetchall()
return sort_and_deduplicate(results)

Expand Down

0 comments on commit dfa7fbd

Please sign in to comment.