mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 21:28:00 +00:00
SQLDocumentStore get_label_count() bug fixed. (#1251)
This commit is contained in:
parent
aaed22304d
commit
04a470f890
@ -406,7 +406,7 @@ class SQLDocumentStore(BaseDocumentStore):
|
||||
"""
|
||||
Return the number of labels in the document store
|
||||
"""
|
||||
index = index or self.index
|
||||
index = index or self.label_index
|
||||
return self.session.query(LabelORM).filter_by(index=index).count()
|
||||
|
||||
def _convert_sql_row_to_document(self, row) -> Document:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user