Commit b2efe798 authored by 赵威's avatar 赵威

save res

parent f97a84d0
......@@ -85,7 +85,7 @@ def save_tractate_vector_to_redis(all_keywords_set, model):
print(count, id, len(vec))
res[id] = vec
if res:
redis_client5.set(redis_key, json.dumps(vec))
redis_client5.set(redis_key, json.dumps(res))
# TODO remove
redis_client5.expire(redis_key, 60 * 60 * 24 * 3)
......
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