Skip to content

Commit

Permalink
💚 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyosun committed Oct 10, 2024
1 parent 7a439bb commit 49eb3b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lamindb/_query_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def get(
else:
assert idlike is None # noqa: S101
expressions = process_expressions(registry, expressions)
return registry.objects.get(**expressions)
return registry.objects.using(qs.db).get(**expressions)


class RecordsList(UserList):
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,4 @@ def test_get_name_field():

def test_using():
ln.Artifact.using("laminlabs/lamin-site-assets").get(1)
ln.Artifact.using("laminlabs/lamin-site-assets").get(uid="MqEaGU7fXvxNy61R0000")

0 comments on commit 49eb3b5

Please sign in to comment.