Commit 501f21b1 authored by Heinrich Widmann's avatar Heinrich Widmann
Browse files

Minor changes

parent 14ca74b1
......@@ -1306,7 +1306,7 @@ class CONVERTER(object):
results['ecount'] += 1
continue
with io.open(path+'/json/'+filename, 'w', encoding='utf8') as json_file:
log.info(' | [INFO] decode json data')
log.debug(' | [INFO] decode json data')
data = json.dumps(jsondata, ensure_ascii=True, sort_keys = True, indent = 4).decode('utf8')
try:
log.debug(' | [INFO] save json file')
......@@ -1560,7 +1560,7 @@ class UPLOADER (object):
status = 0 # set status
# shrink field fulltext
elif(extra['key'] == 'fulltext' and sys.getsizeof(extra['value']) > 30):
elif(extra['key'] == 'fulltext' and sys.getsizeof(extra['value']) > 31999):
errmsg = "'fulltext': Too big ( %d bytes, %d len)" % (sys.getsizeof(extra['value']),len(extra['value']))
encoding='utf-8'
encoded = extra['value'].encode(encoding)[:32000]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment