Skip to content

Commit

Permalink
adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mropat committed Oct 25, 2021
1 parent 86b54fe commit 27971be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statina/API/v2/endpoints/batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def batch_samples(
batch_id=batch_id, adapter=adapter, page_size=page_size, page_num=page_num
)
validated_samples: List[Sample] = [Sample(**sample_obj.dict()) for sample_obj in samples]
document_count: int = find.count_batch_samples(batch_id=batch_id)
document_count: int = find.count_batch_samples(adapter=adapter, batch_id=batch_id)
return JSONResponse(
content=jsonable_encoder(
{"document_count": document_count, "documents": validated_samples},
Expand Down

0 comments on commit 27971be

Please sign in to comment.