Skip to content

Commit

Permalink
Bump Version 0.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
blythed committed Jan 30, 2025
1 parent 2dad709 commit 4364455
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "superduper-framework"
description = "🔮 Bring AI to your favourite database 🔮"
readme = "README.md"
version = '0.5.7'
version = '0.5.8'
license = {file = "LICENSE"}
maintainers = [{name = "superduper.io, Inc.", email = "opensource@superduper.com"}]
keywords = [
Expand Down
8 changes: 8 additions & 0 deletions superduper/backends/query_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ def __init__(
self._documents = list(
self.db.execute(self.select.select_using_ids(ids))
)
primary_id = self.select.id_field
# is it possible that the _documents came out in a different order?
# if so, resort them
lookup = {
r[primary_id]: r for r in self._documents
}
self._documents = [lookup[id] for id in ids]
# DONE
else:
if ids is None:
self._ids = [
Expand Down

0 comments on commit 4364455

Please sign in to comment.