Skip to content

Commit 70e02e3

Browse files
committed
fix DbSession.list_chunk_group_with_hash_prefix condition usage
1 parent 160ecc0 commit 70e02e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prime_backup/db/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def list_chunk_groups(self, limit: Optional[int] = None, offset: Optional[int] =
570570
return _list_it(self.session.execute(s).scalars().all())
571571

572572
def list_chunk_group_with_hash_prefix(self, hash_prefix: str, limit: int) -> List[schema.ChunkGroup]:
573-
s = select(schema.ChunkGroup).where(self.__get_hash_prefix_conditions(hash_prefix, schema.ChunkGroup.hash)).limit(limit)
573+
s = select(schema.ChunkGroup).where(*self.__get_hash_prefix_conditions(hash_prefix, schema.ChunkGroup.hash)).limit(limit)
574574
return _list_it(self.session.execute(s).scalars().all())
575575

576576
def iterate_chunk_group_batch(self, *, batch_size: int) -> Iterator[List[schema.ChunkGroup]]:

0 commit comments

Comments
 (0)