Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
环境:
系统:ubuntu19.10
支持的redis-cli版本:5.0.5
python:3.6.10
mongo:3.6.8
修复的issue是:
#7
被修改的文件为:
bin/doc_to_redis.py(上传书本自带数据集的问题部分和答案部分)
generate_question.py
不显示点赞数量的原因:
doc_to_redis.py的上传部分的代码有问题,已经修复
不显示答案的原因:
generate_question.py导入question时,没有指定id,
但是generate_answer.py中的answer对应的question的id是固定的.
查询结果不匹配导致页面有问题,但是不显示答案.
修改后的效果:
