Selaa lähdekoodia

fix bulk error for table method (#407)

### What problem does this PR solve?


Issue link:#366

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.3.0
KevinHuSh 1 vuosi sitten
vanhempi
commit
800b5c7aaa
No account linked to committer's email address
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 2
    2
      rag/app/table.py
  2. 1
    0
      rag/utils/es_conn.py

+ 2
- 2
rag/app/table.py Näytä tiedosto

@@ -223,8 +223,8 @@ def chunk(filename, binary=None, from_page=0, to_page=10000000000,
continue
if not str(row[clmns[j]]):
continue
#if pd.isna(row[clmns[j]]):
# continue
if pd.isna(row[clmns[j]]):
continue
fld = clmns_map[j][0]
d[fld] = row[clmns[j]] if clmn_tys[j] != "text" else huqie.qie(
row[clmns[j]])

+ 1
- 0
rag/utils/es_conn.py Näytä tiedosto

@@ -2,6 +2,7 @@ import re
import json
import time
import copy

import elasticsearch
from elastic_transport import ConnectionTimeout
from elasticsearch import Elasticsearch

Loading…
Peruuta
Tallenna