Fix parameter of calling self.dataStore.get() and warning info during parser (#13068)

### What problem does this PR solve?

Fix parameter of calling self.dataStore.get() and warning info during
parser

https://github.com/infiniflow/ragflow/issues/13036

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
qinling0210
2026-02-09 17:56:59 +08:00
committed by GitHub
parent 25a32c198d
commit 4bc622b409
2 changed files with 4 additions and 5 deletions

View File

@@ -304,9 +304,8 @@ class Excel(ExcelParser):
def trans_datatime(s):
try:
return datetime_parse(s.strip()).strftime("%Y-%m-%d %H:%M:%S")
except Exception as e:
logging.warning(f"Failed to parse date from {s}, error: {e}")
pass
except Exception:
return None
def trans_bool(s):

View File

@@ -627,7 +627,7 @@ class Dealer:
if cid in id2idx:
chunks[id2idx[cid]]["similarity"] += sim
continue
chunk = self.dataStore.get(cid, idx_nms, kb_ids)
chunk = self.dataStore.get(cid, idx_nms[0], kb_ids)
if not chunk:
continue
d = {
@@ -677,7 +677,7 @@ class Dealer:
vector_size = 1024
for id, cks in mom_chunks.items():
chunk = self.dataStore.get(id, idx_nms, [ck["kb_id"] for ck in cks])
chunk = self.dataStore.get(id, idx_nms[0], [ck["kb_id"] for ck in cks])
d = {
"chunk_id": id,
"content_ltks": " ".join([ck["content_ltks"] for ck in cks]),